You can use the GtkPaned.set_position() method to set the initial position
of the handle. So if you want the clist to be 100 pixels wide, use
"hpaned.set_position(100)" (assuming the clist is in the left pane).
If you are talking avout vertical size of the hpaned widget, it is
probably best to set the default size for the window with
GtkWindow.set_default_size().
James.
--
Email: [EMAIL PROTECTED]
WWW: http://www.daa.com.au/~james/
On Sat, 3 Jul 1999, Harry Henry Gebel wrote:
> Hi,
> I have a GtkCList that I am trying to put inside a
> GtkScrolledWindow (which is inside a GtkHPaned) When it was just the
> CList inside the HPaned automatically adjusted itself to the size of the
> CList (there is currently nothing in the other pane.) After putting the
> CList inside the ScrolledWindow the HPaned now makes itself just big
> enough to view the scroll bars and a little tiny piece of the CList, I
> presume because the ScrolledWindow does not automatically make itself
> large enough to contain the entire CList. So I figured I could just find
> out the size of the CList and manually set the size of the
> ScrolledWindow before putting it inside the HPaned, but I haven't been
> able to figure out how to find out the size of the CList. In the GTK
> referance docs there is a listing of "args" that includes "width" and
> "height" in GtkWidget, but how do access these. I found a function
> called arg_get in GtkObject, but it doesn't appear to work in pygtk
> (maybe I'm doing it wrong, I tried using GtkCList.arg_get("width") but
> got "attribute error: arg_get") How do I access these args? Or
> alteratively get the scrolled Window to start out the same size as the
> initial CList.
>
> -Harry
> To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]
>
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]