Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #41654 > unrolled thread
| Started by | Arnaud Delobelle <arnodel@gmail.com> |
|---|---|
| First post | 2013-03-21 14:37 +0000 |
| Last post | 2013-03-21 20:59 +0000 |
| Articles | 3 — 2 participants |
Back to article view | Back to comp.lang.python
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
| From | Arnaud Delobelle <arnodel@gmail.com> |
|---|---|
| Date | 2013-03-21 14:37 +0000 |
| Subject | tkinter: invisible PanedWindow "sashes" on OS X |
| Message-ID | <mailman.3592.1363876639.2939.python-list@python.org> |
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? TIA, -- Arnaud
[toc] | [next] | [standalone]
| From | Christian Gollwitzer <auriocus@gmx.de> |
|---|---|
| Date | 2013-03-21 19:42 +0100 |
| Message-ID | <kifk6v$87i$1@dont-email.me> |
| In reply to | #41654 |
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. 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) Christian
[toc] | [prev] | [next] | [standalone]
| From | Arnaud Delobelle <arnodel@gmail.com> |
|---|---|
| Date | 2013-03-21 20:59 +0000 |
| Message-ID | <mailman.3600.1363899554.2939.python-list@python.org> |
| In reply to | #41657 |
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
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web