Questions tagged [drawingarea]

DrawingArea is a GTK widget for custom user interface elements.

41 questions
0
votes
0 answers

GTK# Widget Gtk:: DrawingArea not displaying or responding to signals

I am using MonoDevelop IDE on linux/UNIX machine and coding in C# and .NET framework. I cannot seem to figure out how to get the Gtk::DrawingArea to show up in the parent Gtk.Window when the project builds? I have tried adding a ::drawingArea…
0
votes
0 answers

Add widgets above a drawing area that fills its container

Hello, I would like to know if it is possible with GTK3/Glade to install a drawing area in the background and put widgets on top of it (GtkPalette for example). I'd also like to integrate a zoom to enlarge the drawing area when there's no more room…
William
  • 33
  • 5
0
votes
0 answers

Draw with mouse on a GTK DrawinArea using Cairo

I want to draw some points at the mouse position (on the click of the mouse) I use Python with Cairo I've written some code but it doesn't work very well (I see the points when I click on the buttons). I made the GUI using Glade which is also linked…
0
votes
1 answer

PyGtk3 - Gtk.DrawingArea won't scroll

My problem consists in that I have replaced a GtkImage for a GtkDrawingArea widget and it's not scrolling like it happens with the GtkImage. This is how I place both my GtkImage and GtkDrawingArea (one at a…
deko
  • 463
  • 1
  • 6
  • 17
0
votes
1 answer

How to shift a Cairo drawing/surface

I am trying to write a gtk + Cairo application that mimics the animation in wikipedias sine graph. https://en.wikipedia.org/wiki/File:Circle_cos_sin.gif I want to draw a point and then shift the surface to the left, and then draw a new point, and…
G Hasse
  • 1
  • 3
0
votes
0 answers

redraw drawingarea gtk3 C programming

I'm using gtk3 with c int main(int argc, char *argv[]) { out = output_exemple(); //out = k_medoide(in,out); GtkBuilder *gtkBuilder; GtkWidget *window; GtkWidget *entry1, *entry2, *vbox, *button1, *button2, *drawing_area; //initialisation…
Zakaria
  • 170
  • 1
  • 9
0
votes
1 answer

unable to draw correctly in Gtk+3

I can draw in a single Gtk.DrawingArea, but when i try to do it for many, for example 50, i got some errors in drawing. Here is the code you need to check out: def aggiorna(self, args=()): import random import time while…
FrancescoN
  • 2,146
  • 12
  • 34
  • 45
0
votes
1 answer

Drawing in a Gtk.DrawingArea

I'd like to draw inside my Gtk.DrawingArea objects. I have to connect the drawing function to the "draw" event, not to the "expose-event", because i'm working with gtk3. But this doesn't work. Here is my code: def draw(widget, context, args=()): …
FrancescoN
  • 2,146
  • 12
  • 34
  • 45
0
votes
1 answer

AttributeError: 'Style' object has no attribute 'fg_gc'

i'm working on a Gtk.DrawingArea because i want simply draw a rectangle. I've cut and pasted the example of DrawingArea from Gtk examples, cutting off useless code for my purpose. Here below the code (don't care about indentation problems, it's all…
FrancescoN
  • 2,146
  • 12
  • 34
  • 45
0
votes
1 answer

Clearing a drawArea in haskell GTK

I'm making a game using gtk/cairo in haskell, and I'm looking for a way to completely clear the drawing area (a widget of type drawingArea). When a widget resizes for instance, the drawing area is cleared automatically. I'm looking for a way to…
Nathan
  • 73,987
  • 14
  • 40
  • 69
0
votes
1 answer

GTK drawable area transparent background color

I have a GTK drawing area and I want to have an image display as the background for it, while other things can be drawn over it. My first attempt at this involved me simply taking the image, putting it into a pixmap, and drawing it before I draw…
user2327814
  • 523
  • 3
  • 8
  • 18
1 2
3