Re: [Tkinter-discuss] Fixed ratio split screen geometry manager

2018-03-11 Thread adil gourinda
I suggest to use place() geometry manager

From: Tkinter-discuss 
<tkinter-discuss-bounces+rikudou__sennin=live@python.org> on behalf of Nam 
Nguyen via Tkinter-discuss <tkinter-discuss@python.org>
Sent: Tuesday, March 6, 2018 6:48:35 PM
To: tkinter-discuss@python.org
Subject: [Tkinter-discuss] Fixed ratio split screen geometry manager

Hi,

I'm looking for a fixed ratio 2-pane geometry manager.

I tried PanedWindow but it does not have any option for me to specify the ratio 
of the children.

What I'm looking for is a geometry manager/container that splits its space into 
two for the children. The children can grow only in their own spaces. The 
children can come and go, but the parent container should maintain that 2-pane 
split with the same ratio.

Where should I look into?

Thanks!

___
Tkinter-discuss mailing list
Tkinter-discuss@python.org
https://mail.python.org/mailman/listinfo/tkinter-discuss


Re: [Tkinter-discuss] Fixed ratio split screen geometry manager

2018-03-06 Thread Michael Lange
Hi,

On Tue, 6 Mar 2018 09:57:01 -0800
Nam Nguyen  wrote:

> Hi,
> 
> I'm looking for a fixed ratio 2-pane geometry manager.
> 
> I tried PanedWindow but it does not have any option for me to specify
> the ratio of the children.
> 
> What I'm looking for is a geometry manager/container that splits its
> space into two for the children. The children can grow only in their
> own spaces. The children can come and go, but the parent container
> should maintain that 2-pane split with the same ratio.
> 
> Where should I look into?

in case you do not need the PanedWindow's resize handle, you might
want to have a look at the Grid geometry manager's uniform and weight
options to the grid_columnconfigure() and grid_rowconfigure() commands.

Another option might be to have a look at the Place geometry manager,
especially the relheight and relwidth options. Using for example 
relheight=0.5 will make the widget always occupy 50% of the parent
widget's height.

Best regards

Michael


.-.. .. ...- .   .-.. --- -. --.   .- -. -..   .--. .-. --- ... .--. . .-.

The sight of death frightens them [Earthers].
-- Kras the Klingon, "Friday's Child", stardate 3497.2
___
Tkinter-discuss mailing list
Tkinter-discuss@python.org
https://mail.python.org/mailman/listinfo/tkinter-discuss


[Tkinter-discuss] Fixed ratio split screen geometry manager

2018-03-06 Thread Nam Nguyen
Hi,

I'm looking for a fixed ratio 2-pane geometry manager.

I tried PanedWindow but it does not have any option for me to specify the
ratio of the children.

What I'm looking for is a geometry manager/container that splits its space
into two for the children. The children can grow only in their own spaces.
The children can come and go, but the parent container should maintain that
2-pane split with the same ratio.

Where should I look into?

Thanks!
Nam
___
Tkinter-discuss mailing list
Tkinter-discuss@python.org
https://mail.python.org/mailman/listinfo/tkinter-discuss