Re: [pygtk] Notebook Tabs

2010-03-07 Thread Stephen George
Hi Peyman, Don't know if I understand your question correctly. The label can be rotated with set label, this will give you vertical text. http://www.pygtk.org/docs/pygtk/class-gtklabel.html#method-gtklabel--set-angle The notebook tab is just accommodating it's children (label), and not controll

Re: [pygtk] How to place widgets on a grid?

2010-03-07 Thread John Stowers
On Sun, 2010-03-07 at 12:28 +0100, Martin Drautzburg wrote: > On Sunday, 7. March 2010 11:11:41 John Stowers wrote: > > On Sat, 2010-03-06 at 19:26 +0100, Martin Drautzburg wrote: > > > I've been struggeling with the following problem: I want to have a grid > > > in the background and I want to put

[pygtk] Notebook Tabs

2010-03-07 Thread PEYMAN ASKARI
Hello There are four positions for tabs (gtk.POS_BOTTOM,gtk.POS_TOP,gtk.POS_LEFT.gtk.POS_RIGHT) TOP and BOTTOM work as expected, however, on LEFT and RIGHT, the label is still horizontal. Therefore, if the label is particularly long, it will push the notebook to the right/left. Intuitively it

Re: [pygtk] How to place widgets on a grid?

2010-03-07 Thread Martin Drautzburg
On Sunday, 7. March 2010 11:11:41 John Stowers wrote: > On Sat, 2010-03-06 at 19:26 +0100, Martin Drautzburg wrote: > > I've been struggeling with the following problem: I want to have a grid > > in the background and I want to put Buttons (or other Widgets) on the > > Grid. > > gtk.Table ? > > Jo

Re: [pygtk] Resizing a Button with motion_notify_event?

2010-03-07 Thread Pietro Battiston
Il giorno dom, 07/03/2010 alle 11.49 +0100, Martin Drautzburg ha scritto: > Hello all, > > I am trying to implement a gtk.Button which can be resized (by grabbing it > near its nower edge) and dragged around (by grabbing it somewhere near its > center). The gtk.Button is placed inside a gtk.Lay

Re: [pygtk] Resizable rectangles, where to start?

2010-03-07 Thread Timo
On 06-03-10 19:59, Martin Drautzburg wrote: > Hello all, > > For my agenda view I need some dragable and resizable widgets, which primarily > contain text. I don't quite know where to start. Can anyone give me a clue? > > I installed the agende program called "Dates" yesterday for someone. It

[pygtk] treeview with context menu and multiselect

2010-03-07 Thread Cornelius Kölbel
Hi list, I got a treeview with multiselect. I created a context menu for this treeview I connected GtkWidget.buttong-press-event to on_userTreeview_button_press_event via glade. def on_userTreeview_button_press_event(self, widget, event): if event.button==3: self.popupUserMenu.popu

[pygtk] Getting available printers

2010-03-07 Thread Timo
Hello, My program let's the user print some stuff, which works fine. But I would like to go from: gtk.PrintOperation(gtk.PRINT_OPERATION_ACTION_PRINT_DIALOG, parent) to: gtk.PrintOperation(gtk.PRINT_OPERATION_ACTION_PRINT, parent) So I can eliminate the extra dialog, because I set every option so

[pygtk] Resizing a Button with motion_notify_event?

2010-03-07 Thread Martin Drautzburg
Hello all, I am trying to implement a gtk.Button which can be resized (by grabbing it near its nower edge) and dragged around (by grabbing it somewhere near its center). The gtk.Button is placed inside a gtk.Layout. I could get this to work by responding to mouse events WITHIN the Button. Ho

Re: [pygtk] How to place widgets on a grid?

2010-03-07 Thread John Stowers
On Sat, 2010-03-06 at 19:26 +0100, Martin Drautzburg wrote: > Hello all, > > I've been struggeling with the following problem: I want to have a grid in > the > background and I want to put Buttons (or other Widgets) on the Grid. gtk.Table ? John _

Re: [pygtk] Wnck: Switching to and reporting current workspace (desktop) number.

2010-03-07 Thread Pietro Battiston
Il giorno dom, 07/03/2010 alle 09.00 +0100, Osmo Maatta ha scritto: > Re-hello, > > Yes, your code works fine. > But the following code fails. > The "self.attuale" print 0 for every loop. > > # Again: This works only with Metacity or similar WM. > import gtk, gobject, wnck > import time > > clas

Re: [pygtk] Wnck: Switching to and reporting current workspace (desktop) number.

2010-03-07 Thread Osmo Maatta
Re-hello, Yes, your code works fine. But the following code fails. The "self.attuale" print 0 for every loop. # Again: This works only with Metacity or similar WM. import gtk, gobject, wnck import time class Cambiatore(object): def __init__(self): self.screen= wnck.screen_get_defau