Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #100213
| X-Received | by 10.129.83.85 with SMTP id h82mr3270651ywb.0.1449706626330; Wed, 09 Dec 2015 16:17:06 -0800 (PST) |
|---|---|
| X-Received | by 10.50.9.39 with SMTP id w7mr771726iga.3.1449706626303; Wed, 09 Dec 2015 16:17:06 -0800 (PST) |
| Path | csiph.com!xmission!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!peer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!b51no7506691qgf.0!news-out.google.com!l1ni1936igd.0!nntp.google.com!mv3no14032567igc.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail |
| Newsgroups | comp.lang.python |
| Date | Wed, 9 Dec 2015 16:17:05 -0800 (PST) |
| Complaints-To | groups-abuse@google.com |
| Injection-Info | glegroupsg2000goo.googlegroups.com; posting-host=2602:306:ce85:60f0:223:5aff:fe17:45a1; posting-account=B6PQZAoAAAAvA5FRsgrnUarZ9WUGbBL7 |
| NNTP-Posting-Host | 2602:306:ce85:60f0:223:5aff:fe17:45a1 |
| User-Agent | G2/1.0 |
| MIME-Version | 1.0 |
| Message-ID | <589c87de-5712-4efb-80a2-3a862b6dafd8@googlegroups.com> (permalink) |
| Subject | PyTk cascaded radiobuttons, howto? |
| From | nickgeovanis@gmail.com |
| Injection-Date | Thu, 10 Dec 2015 00:17:06 +0000 |
| Content-Type | text/plain; charset=ISO-8859-1 |
| X-Received-Bytes | 1892 |
| X-Received-Body-CRC | 3642323961 |
| Xref | csiph.com comp.lang.python:100213 |
Show key headers only | View raw
Using python 3.4.2. Tcl/tk example here is from /usr/share/tk8.5/demos/widget and .../menu.tcl. The way tcl/tk adds cascaded radiobuttons to a menu is like this: set m $w.menu.cascade $w.menu add cascade -label "Cascades" -menu $m -underline 0 .... $m add cascade -label "Radio buttons" -menu $w.menu.cascade.radio... set m $w.menu.cascade.radio $m add radio -label "Roman" -variable style... $m add radio -label "Italic" -variable style... ...and so on. My difficulty doing the same in PyTk is the following: When creating that uppermost cascade, you do something like menu.add_cascade(label = "Cascades") ...but there is no ability to save a usable reference to that top-level cascade. If I do so anyway and add a radiobutton to it, nothing appears, no errors either. What is the correct way to cascade radiobuttons from a cascaded menu in PyTk? Thanks....Nick
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
PyTk cascaded radiobuttons, howto? nickgeovanis@gmail.com - 2015-12-09 16:17 -0800 Re: PyTk cascaded radiobuttons, howto? nickgeovanis@gmail.com - 2015-12-09 17:53 -0800 tkinter cascaded menus, was Re: PyTk cascaded radiobuttons, howto? Peter Otten <__peter__@web.de> - 2015-12-10 10:27 +0100
csiph-web