A have also written a simple window controller horizontal box in PyGTK (and PyGI as well) you can check it out: https://github.com/ilius/starcal/blob/next/scal2/ui_gtk/mainwin_items/winContronller.py It's integrated with my complicated program though! Good luck with that anyway :D
On Tue, Mar 18, 2014 at 8:49 PM, Saeed Rasooli <saeed....@gmail.com> wrote: > Use "gtk.Window.begin_move_drag" on button's handler's for > "button-press-event" > (The widget doesn't have to be a GtkButton, for example you can move the > window by dragging an empty place of a toolbar) > > class MyWindow(gtk.Window) > def buttonPress(self, widget, event): > self.begin_move_drag(event.button, int(event.x_root), > int(event.y_root), event.time) > > > > On Tue, Mar 18, 2014 at 8:07 PM, Lucas Sichardt > <lucas.sicha...@posteo.de>wrote: > >> Hello out there, >> >> is there a way to let the user move the window e.g. by pressing and >> holding down a button? >> My problem is that I need to have a non decorated window being moved by >> the user so that the user can exactly move the window's top left corner to >> a specific position. This is not possible with window decorations due to >> the fact that there are diffeent sizes of decorations. >> >> Perhaps someone knows a way to add a "window move widget" to my window in >> some way with pygtk. >> >> Thanks for your attention... >> >> Best regards, >> Lucas Sichardt >> >> -- >> [image: Lucas Sichardt | lucas.sicha...@posteo.de | >> http://Lucas.Sichardt.net] >> <http://lucas.sichardt.net><http://lucas.sichardt.net/index.php?Seite=Aktuell> >> gesendet mit [image: O] <http://www.opera.com>pera 12 unter >> <http://www.linuxmint.com>Linux Mint 13 Maya Xfce >> >> _______________________________________________ >> pygtk mailing list pygtk@daa.com.au >> http://www.daa.com.au/mailman/listinfo/pygtk >> Read the PyGTK FAQ: http://faq.pygtk.org/ >> > >
_______________________________________________ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/