Hi!

Could me tell anyone please, hogy to draw a line on a GTK2.Widget?

I tried the following way:
...
win = builder->get_widget("drawingarea");      // A DrawingArea from a glade 
file
gc = GTK2.GdkGC(win);
win->set_background(GTK2.GdkColor(255, 0, 0));      // It's ok, the background 
will be red
gc->set_foreground(GTK2.GdkColor(0, 0, 255));
win->draw_line(gc, 1, 1, 100, 100);                       // No line, but why?

builder->get_widget("mainwindow")->show_now();
...

Thanks in advance:
Thomas
                                          
Menet közben használható e-mail és egyéb funkciók. Töltse le ingyen a Windows 
Live Hotmail programot. Regisztráljon most!                                     
    
_________________________________________________________________
Hotmail: Hatékony, ingyenes e-mail szolgáltatás a Microsoft által biztosított 
védelemmel.
https://signup.live.com/signup.aspx?id=60969
  • GTK... Csürke Tamás
    • ... Marcus Comstedt (ACROSS) (Hail Ilpalazzo!) @ Pike (-) developers forum
      • ... Csürke Tamás

Reply via email to