Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #41668

Re: tkinter: invisible PanedWindow "sashes" on OS X

References <mailman.3592.1363876639.2939.python-list@python.org> <kifk6v$87i$1@dont-email.me>
Date 2013-03-21 20:59 +0000
Subject Re: tkinter: invisible PanedWindow "sashes" on OS X
From Arnaud Delobelle <arnodel@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.3600.1363899554.2939.python-list@python.org> (permalink)

Show all headers | View raw


On 21 March 2013 18:42, Christian Gollwitzer <auriocus@gmx.de> wrote:
> Am 21.03.13 15:37, schrieb Arnaud Delobelle:
>
>> Hi Python List,
>>
>> I'm trying to use PanedWindow on OS X (10.8.3).  I've started with the
>> effbot docs example (http://effbot.org/tkinterbook/panedwindow.htm),
>> namely:
>>
>> ----------
>> from Tkinter import *
>>
>> m = PanedWindow(orient=VERTICAL)
>> m.pack(fill=BOTH, expand=1)
>>
>> top = Label(m, text="top pane")
>> m.add(top)
>>
>> bottom = Label(m, text="bottom pane")
>> m.add(bottom)
>>
>> mainloop()
>> ----------
>>
>> I can see two panes alright, but no handle to resize them (or 'sash'
>> as they seem to be called in tkinter).  Is there something else that I
>> should be doing?
>
>
> This is, unfortunately, the platform standard on both OSX and Windows7. You
> can still resize the windows: Just grab the space between the two labels.
> There should be at least a cursor change.

I cannot effect a cursor change with the example above.

> With you example it doesn't work particularly well, because the labels are
> small and have no visible border. Try using e.g. a text widget instead (or
> maybe relief=SUNKEN)

If I use text widgets for the top and bottom panes, then I can get a
resize cursor and I am able to drag the 'sash' up and down.  That's
good enough for me to get started.  Thanks for the suggestion,

-- 
Arnaud

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

tkinter: invisible PanedWindow "sashes" on OS X Arnaud Delobelle <arnodel@gmail.com> - 2013-03-21 14:37 +0000
  Re: tkinter: invisible PanedWindow "sashes" on OS X Christian Gollwitzer <auriocus@gmx.de> - 2013-03-21 19:42 +0100
    Re: tkinter: invisible PanedWindow "sashes" on OS X Arnaud Delobelle <arnodel@gmail.com> - 2013-03-21 20:59 +0000

csiph-web