Path: csiph.com!usenet.pasdenom.info!news.albasani.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.015 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'tkinter': 0.07; 'python': 0.09; 'cursor': 0.09; 'doing?': 0.09; 'cc:addr:python-list': 0.10; 'drag': 0.16; 'osx': 0.16; 'resize': 0.16; 'windows:': 0.16; 'wrote:': 0.17; 'widget': 0.17; '(or': 0.18; 'trying': 0.21; 'import': 0.21; 'visible': 0.22; 'cc:2**0': 0.23; 'example': 0.23; "i've": 0.23; 'least': 0.25; 'cc:addr:python.org': 0.25; 'header :In-Reply-To:1': 0.25; '----------': 0.26; 'message- id:@mail.gmail.com': 0.27; "doesn't": 0.28; "i'm": 0.29; 'maybe': 0.29; 'e.g.': 0.30; 'docs': 0.33; 'handle': 0.33; 'received:google.com': 0.34; 'text': 0.34; 'christian': 0.34; 'thanks': 0.34; 'something': 0.35; 'there': 0.35; 'but': 0.36; 'url:org': 0.36; 'subject:" ': 0.36; 'should': 0.36; 'skip:p 20': 0.36; 'enough': 0.36; 'two': 0.37; 'subject:: ': 0.38; 'instead': 0.39; 'space': 0.39; 'called': 0.39; 'list,': 0.39; 'bottom': 0.60; 'skip:u 10': 0.60; 'between': 0.63; 'grab': 0.64; 'started.': 0.65; '2013': 0.84; 'labels.': 0.97 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=r6imaxE2Y3ISMAcVL5GJOzt1taXqqXWI+o5jgVjmmb4=; b=qnZGinXD5GoUGYGGYa4DAajSnjzBznptis9eFWP1JxUj6rnVas9/2OV/InPwvjpXeZ FRrIWbxsNO9a+2Be7LUGfe5o5sf8x7FWhaiScPfrK96v7imMiBRmjxJYGQQosr7uNIqO T4YcWbpk0avu3qMz/tTibBJZvyIFejPM6lzZI/yzyMvG69yzotBgNIaTcqUvOqou/SAL jYyj0y6vM0w/M+A/x59h9rgaa4x70+GBLEW92kqdrPlGxZxVV20/WzaedlfHOvbP6DXT WMbO89m1QJBpgwkyNmh+/QagV1mf+9DorwOTW0F6ReiZWfMXwPWoAtCaqAHn/3So0+T3 9WMA== MIME-Version: 1.0 X-Received: by 10.112.25.202 with SMTP id e10mr12417778lbg.98.1363899546189; Thu, 21 Mar 2013 13:59:06 -0700 (PDT) In-Reply-To: References: Date: Thu, 21 Mar 2013 20:59:05 +0000 Subject: Re: tkinter: invisible PanedWindow "sashes" on OS X From: Arnaud Delobelle To: Christian Gollwitzer Content-Type: text/plain; charset=UTF-8 Cc: Python X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 45 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1363899554 news.xs4all.nl 6873 [2001:888:2000:d::a6]:40709 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:41668 On 21 March 2013 18:42, Christian Gollwitzer 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