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

2003-06-12 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 phenomena, that are 
only a small portion of human perceptions.

H Casimir, Dutch Physicist
___
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/


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_aspect=-1.0, max_aspect=-1.0)

geometry_widget : the widget the geometry hints will be applied to
min_width : the minimum width of window (or -1 to use requisition)
min_height : the minimum height of window (or -1 to use requisition)
max_width : the maximum width of window (or -1 to use requisition)
max_height : the maximum height of window (or -1 to use requisition)
base_width : allowed window widths are base_width + width_inc * N where 
N is any integer
base_height : allowed window heights are base_height + width_inc * N 
where N is any integer
width_inc : the width resize increment
height_inc : the height resize increment
min_aspect : the minimum width to height ratio
: the maximum width to height ratio

The set_geometry_hints() method sets up hints about how a window can be 
resized by the user. You can set the minimum and maximum widths and 
heights, the base width and height for resizing, the allowed width and 
height resize increments (e.g. for xterm, you can only resize by the 
size of a character), and the minimum and maximum aspect ratios. If 
geometry_widget is not None it specifies the widget to figure the 
geometry on.



___
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/


[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 phenomena, that are 
only a small portion of human perceptions.

H Casimir, Dutch Physicist
___
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/