Re: [pygtk] restore window position

2009-12-17 Thread Simon Burton
On Thu, 17 Dec 2009 12:01:30 +0100 Pietro Battiston wrote: ... > > On my system it moves the window down 24 pixels and to the right 5 pixels. > > OK, now I understand. Which system is it? > > Pietro > ubuntu 8.04, gnome, compiz, ... I'd like to write crossplatform code though. Simon. __

Re: [pygtk] restore window position

2009-12-17 Thread Simon Burton
On Thu, 17 Dec 2009 09:42:00 +0100 Pietro Battiston wrote: ... > I didn't try all of these, nor did study the decorations problem, but I > did verify that: > > w.move(*w.get_position()) > > does leave the window where it is. To my eyes, this would seem enough, > isn't it?! On my system it move

[pygtk] restore window position

2009-12-16 Thread Simon Burton
When finding out the position of a window i get a position that is offset by the window manager decorations. So I haven't been able to restore a windows position because the move function takes a position that is not offset by the decorations. Is there a way around this problem ? I have tried al

Re: [pygtk] ANN: PyGUI 2.1

2009-11-16 Thread Simon Burton
On Mon, 16 Nov 2009 10:17:11 +1300 Greg Ewing wrote: ... > However, if the consensus is that PyGUI announcements are > not welcome on those lists, I will be happy to cease posting > them there. > > What is the general feeling out there? Should I stop posting > PyGUI messages to these lists? Is

[pygtk] AttributeError: 'module' object has no attribute 'CAPI'

2008-07-09 Thread Simon Burton
Python 2.5.1 (r251:54863, Jun 21 2007, 12:28:02) [GCC 4.0.3 (Ubuntu 4.0.3-1ubuntu5)] on linux2 Type "help", "copyright", "credits" or "license" for more information. Make it so. >>> import gtk Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python2.5/site-packages/

Re: [pygtk] AttributeError: 'module' object has no attribute 'CAPI'

2007-10-22 Thread Simon Burton
On Mon, 22 Oct 2007 23:09:52 +0200 "Gian Mario Tagliaretti" <[EMAIL PROTECTED]> wrote: > > 2007/10/22, Simon Burton <[EMAIL PROTECTED]>: > > > AttributeError: 'module' object has no attribute 'CAPI' > > > Any ideas ? >

[pygtk] AttributeError: 'module' object has no attribute 'CAPI'

2007-10-22 Thread Simon Burton
Python 2.5.1 (r251:54863, Jun 21 2007, 12:28:02) [GCC 4.0.3 (Ubuntu 4.0.3-1ubuntu5)] on linux2 Type "help", "copyright", "credits" or "license" for more information. Make it so. >>> import gtk Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python2.5/site-packages/

Re: [pygtk] gtk.gdk.Colormap.alloc_color

2002-12-05 Thread Simon Burton
uld make a note to the guys on python-dev. Today, i would convert the RGB values as ints and then (silently) cast them to ushorts. If no one responds, i'll (try to) work out this bugzilla thing and submit a patch. Bye for now, Simon Burton. On Tue, 3 Dec 2002 20:15:52 -0200 Christian Reis <[E

[pygtk] gtk.gdk.Colormap.alloc_color

2002-12-03 Thread Simon Burton
LL; } } This also seems to be a slight flaw in python's error system; i'm not sure if overloaded builtins are common (in pygtk), but if so, perhaps a mechanism for disjunction ("or") of exceptions would help. Anyway, i'd like to work more on this, and am looking f