[pygtk] How to show widget and move window slightly?

2010-02-10 Thread middleofdre...@gmail.com
Hi, I have an app which has some default hidden widget (some container). How show it in the right side of app (rest of the window should stay in same place) ? I tried 2 things: - set window gravity to EAST and then show widget. Just didn't work in some window managers (works for compiz, don't work

[pygtk] TreeView CellRendererText Ellipsize Example

2010-02-10 Thread Andre "Osku" Schmidt
hi, i just can't find an example on how to get ellipsize to work in a TreeView/CellRendererText column. if i set the ellipsize attribute in glade to "end" (for a cellrenderertext) i only see 3 dots (...) and nothing else. just plenty of empty space right of the dots. or maybe it's a bug ? as doin

[pygtk] TreeView CellRendererText Ellipsize Example

2010-02-10 Thread Andre "Osku" Schmidt
hi, i just can't find an example on how to get ellipsize to work in a TreeView/CellRendererText column. if i set the ellipsize attribute in glade to "end" (for a cellrenderertext) i only see 3 dots (...) and nothing else. just plenty of empty space right of the dots. or maybe it's a bug ? as doin

Re: [pygtk] Sending a message to the window manager (switch to desktop # X)

2010-02-10 Thread Osmo Maatta
Re-hello, The wnck library seems to have many useful functions. I made this based on your example. import gtk, gobject, wnck class SwitchDesktop(object): def __init__(self): self.screen = wnck.screen_get_default() def switch(self, desktop_num): self.screen = wnck.screen_g

Re: [pygtk] Sending a message to the window manager (switch to desktop # X)

2010-02-10 Thread Pietro Battiston
Il giorno mer, 10/02/2010 alle 11.56 +0100, Osmo Maatta ha scritto: > Hello, > > I have code that sends a message to the window manager to switch to a > given desktop number. > I try converted this code from C to GDK on Ubuntu Linux. > I posted the following on another mailing list some time ago

[pygtk] Sending a message to the window manager (switch to desktop # X)

2010-02-10 Thread Osmo Maatta
Hello, I have code that sends a message to the window manager to switch to a given desktop number. I try converted this code from C to GDK on Ubuntu Linux. # The code is this. import gtk.gdk import struct # Switch to desktop number X gdk_root = gtk.gdk.get_default_root_window() gdk_di