[pygtk] ORBit2 2.7.2 vs pyorbit 1.99.4

2003-06-10 Thread Bowie Owens
Hi, The changes in the recently released ORBit 2.7.2 mean that pyorbit 1.99.4 no longer compiles. In pyorbit-servant.c the use of the internal API is problematic. Since include files that are needed for the internal API are not installed along with the public include files. If I simply comment

Re: [pygtk] gdk geometry for a gtk.Window.set_geometry_hints()

2003-06-10 Thread John Finlay
Hi Martijn, I don't think you need a GdkRectangle for this method. The method is defined like: gtk.Window.set_geometry_hints def set_geometry_hints(geometry_widget, min_width=-1, min_height=-1, max_width=-1, max_height=-1, base_width=-1, base_height=-1, width_inc=-1, height_inc=-1, min_

Re: [pygtk] Validating an entry box

2003-06-10 Thread Shannon -jj Behrens
On Tue, Jun 10, 2003 at 04:46:12PM -0500, Art Haas wrote: > On Tue, Jun 10, 2003 at 02:34:17PM -0700, Shannon -jj Behrens wrote: > > I had to do something similar. I recommend the following (pseudocode): > > > > def on_init: > > old_text = "whatever" > > > > def on_changed: > > if not is

Re: [pygtk] Validating an entry box

2003-06-10 Thread Art Haas
On Tue, Jun 10, 2003 at 02:34:17PM -0700, Shannon -jj Behrens wrote: > I had to do something similar. I recommend the following (pseudocode): > > def on_init: > old_text = "whatever" > > def on_changed: > if not is_valid(new_text): > new_text = old_text > else: >

[pygtk] gdk geometry for a gtk.Window.set_geometry_hints()

2003-06-10 Thread Martijn Brouwer
Hi, I need a GdkGeometry struct for use in a gtk.Window.set_geometry_hints() command, but I cannot find how to create such an object. I imported gtk and then gtk.gdk, but dir(gtk.gdk) did not show me anything relevant. Martijn -- Physics is a approximate description of a part of the physical

[pygtk] Validating an entry box

2003-06-10 Thread Art Haas
Hi. I'm making progress in understanding how to validate the data in an entry box, but I find myself now at a cursor-related puzzle. My validation test code is below. A window with an entry box appears, and the idea is to only accept what will be a valid floating point number. The bits about '-'

Re: [pygtk] Execution in background

2003-06-10 Thread Jean-Baptiste Cazier
Sæll Thanks for the advices. I could nail down the problem to a much smaller test program which shows "conflict" between rsh and the os.system() (see below) It looks indeed like a general python problem: I use os.popen in place of os.system. However it does not solve the rsh problem which is