Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #75176
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!goblin2!goblin.stu.neva.ru!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <zachary.ware@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.001 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'yet.': 0.04; 'root': 0.05; 'subject:Python': 0.06; 'filename:fname piece:py': 0.07; 'importerror:': 0.07; 'linux,': 0.07; 'sys': 0.07; 'tkinter': 0.07; 'exist,': 0.09; 'i\xe2\x80\x99ve': 0.09; 'tcl/tk': 0.09; 'try:': 0.09; 'def': 0.12; '24,': 0.16; 'bread,': 0.16; 'compatible,': 0.16; 'example)': 0.16; 'indexerror:': 0.16; 'once.': 0.16; 'self.root': 0.16; 'sliced': 0.16; 'subject:GUI': 0.16; 'subject:desktop': 0.16; 'tcl': 0.16; 'tix': 0.16; 'tk.': 0.16; 'url:linux': 0.16; 'sender:addr:gmail.com': 0.17; 'wrote:': 0.18; 'app': 0.19; '(but': 0.19; 'small,': 0.19; 'thu,': 0.19; 'widget': 0.19; 'working.': 0.19; 'later': 0.20; 'import': 0.22; 'saying': 0.22; 'to:name:python-list@python.org': 0.22; 'fairly': 0.24; "haven't": 0.24; 'script': 0.25; 'header:In-Reply-To:1': 0.27; 'tried': 0.27; 'chris': 0.29; '[1]': 0.29; "doesn't": 0.30; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; 'work.': 0.31; '(which': 0.31; 'gives': 0.31; 'subject:next': 0.31; 'though.': 0.31; 'anyone': 0.31; 'class': 0.32; 'probably': 0.32; 'option': 0.32; 'quite': 0.32; 'linux': 0.33; 'everyone': 0.33; 'projects.': 0.33; 'skip:_ 10': 0.34; "can't": 0.35; 'agree': 0.35; 'except': 0.35; 'skip:s 30': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'really': 0.36; 'charset:us-ascii': 0.36; 'should': 0.36; 'two': 0.37; 'list': 0.37; 'button': 0.38; 'gmail': 0.38; 'handle': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'anything': 0.39; 'though,': 0.39; 'to:addr:python.org': 0.39; 'enough': 0.39; 'how': 0.40; 'results.': 0.60; 'tell': 0.60; 'complete': 0.62; 'such': 0.63; 'myself': 0.63; 'choose': 0.64; 'provide': 0.64; 'more': 0.64; 'skip:\xe2 10': 0.65; 'world': 0.66; 'it!': 0.67; 'results': 0.69; '8bit%:43': 0.74; 'jul': 0.74; 'url:search': 0.81; '2:02': 0.84; 'browsers,': 0.84; 'subject:Project': 0.84; 'ugly,': 0.84; 'don\xe2\x80\x99t': 0.91; 'hate': 0.91; 'url:tk': 0.95 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=DThIaLOISfLAg8zVlfrrgWuPQG8J/F5VUlhPoARtUtA=; b=KVgVKAtieO/GLRnqcGglj5ONcVobRR+CFSMxYMkHksP/TQ8Y0TFIzusBovrNJ2Ugd9 oAmIzZ0W57GslZJo6UvJ6UXj2CDH9c4gVdKYhKvGVz01j0euMKPeS/uXKXs9Ipugx4Ek C0jNy/fuRi82jLphNzieL6i0mdDXyrQziDb1ZEywgBduuYi0q+3B9Y+6lX+uGGQyTgCP eW6X+h843zf1YG0/kHygqmRP3aS57Bm3djzyCHb0dLPnUil4DuB77IPzdEnIU/hpdZAd wnRI3M5evZGavuJtH/Sr1CBtMGzFmBgxQo8CLceYjmhhx8n77UUYxhkxfFwxXlu6jlYz cjJg== |
| X-Received | by 10.60.103.195 with SMTP id fy3mr2372620oeb.35.1406232842434; Thu, 24 Jul 2014 13:14:02 -0700 (PDT) |
| MIME-Version | 1.0 |
| Sender | zachary.ware@gmail.com |
| In-Reply-To | <CAMw+j7LWFq66OvS6+Qk6+K0NwCV=WpJjjy7uPYy9QyToJL7itA@mail.gmail.com> |
| References | <93c42547-557b-4839-baba-9ed54120595e@googlegroups.com> <CAKJDb-NcKe5cvzjwFm24EKR63E-A4M2wkdZpY5dx4dqeTEcr0g@mail.gmail.com> <CAMw+j7KtzVkcpyqqKMPjNgqaiKzHq=yOLroe18+cnkd_rSWkNA@mail.gmail.com> <CAKJDb-MetNpEt79awj5iB_6pbSYQhcw_xQ8rzo-s6_yaz_BOhQ@mail.gmail.com> <CAMw+j7LWFq66OvS6+Qk6+K0NwCV=WpJjjy7uPYy9QyToJL7itA@mail.gmail.com> |
| From | Zachary Ware <zachary.ware+pylist@gmail.com> |
| Date | Thu, 24 Jul 2014 15:13:42 -0500 |
| X-Google-Sender-Auth | 1wlIqrq2AIbdkGYttDzmZAocL8w |
| Subject | Re: Exploring Python for next desktop GUI Project |
| To | "python-list@python.org" <python-list@python.org> |
| Content-Type | multipart/mixed; boundary=089e01182c0a0b8ce604fef6198d |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.12298.1406232850.18130.python-list@python.org> (permalink) |
| Lines | 166 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1406232850 news.xs4all.nl 2888 [2001:888:2000:d::a6]:51771 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:75176 |
Show key headers only | View raw
[Multipart message — attachments visible in raw view] - view raw
On Thu, Jul 24, 2014 at 2:02 PM, Chris “Kwpolska” Warrick
<kwpolska@gmail.com> wrote:
> Pretty much everyone in the world hates Tcl and Tk. Ask your favorite
> search engine for some results.
Whee, I'm an alien! ;)
I'm not saying Tk is the best thing since sliced bread, I just don't
see what so many people seem to hate about it.
> i’ve tried to write a Tkinter thing once. I don’t have a copy anymore
> (consciously deleted), but I vaguely remember some issues with widgets
> that do not work. I also remember that the list of widgets is quite
> small and not enough for many projects.
I have had no issues with widgets not working. I will admit that the
widget set is fairly small, though. You can get more from Tix (which
is also distributed with tkinter), but I haven't had any need for that
yet.
> The best way to handle this is just choose one of the two (wxwidgets
> chose GTK 2, for example) and be considered native enough by most, as
> people don’t really mind mixing them (as there are no good Qt web
> browsers, and VLC uses Qt and not GTK)
That's fair, and I agree that Tk should probably provide "close to
GTK" and "close to QT" themes for ttk[1]. As I understand it, though,
ttk gives almost complete control over the look of individual widgets,
so if you really don't like how your widget looks, change it!
> ttk on Linux doesn’t change a thing. It still uses the ugly, ancient,
> motif-esque style:
>
> https://www.google.com/search?q=tk+linux&tbm=isch
>
> (also, off by 10 years, motif is actually from the 1980s.)
Motif is indeed ugly, but your search for 'tk linux' doesn't tell me
anything about 'ttk linux'. I would be interested in the results of
the script below on Linux, which I may or may not be able to try for
myself later (but can't right now).
--
Zach
[1] Such themes might already exist, I haven't checked. If anyone
wants to see what themes are available and how they look, try this
(2/3 compatible, also attached in case Gmail messes it up):
import sys
try:
import tkinter as tk
from tkinter import ttk
except ImportError:
import Tkinter as tk
import ttk
class App(object):
def __init__(self, root):
self.root = root
self.root.title('Theme tester')
self.info_label = ttk.Label(self.root,
text="Python {}.{} with Tcl/Tk {} on {}".format(
sys.version_info[0], sys.version_info[1],
self.root.tk.eval('info patchlevel'),
sys.platform))
self.info_label.pack()
self.theme_idx = 0
self.change_btn = ttk.Button(self.root,
text='Change theme',
command=self.change_theme
)
self.change_btn.pack()
self.rb_var = tk.StringVar(self.root)
self.radiobtn = ttk.Radiobutton(self.root,
text='Radio button option 1',
variable=self.rb_var,
value='1')
self.radiobtn.pack()
self.radiobtn2 = ttk.Radiobutton(self.root,
text='Radio button option 2',
variable=self.rb_var,
value='2')
self.radiobtn2.pack()
self.checkbtn = ttk.Checkbutton(self.root, text='Checkbutton')
self.checkbtn.pack()
self.entry = ttk.Entry(self.root)
self.entry.insert(0, 'Entry')
self.entry.pack()
self.style = ttk.Style(self.root)
self.available_themes = self.style.theme_names()
self.theme_label = ttk.Label(self.root, text='Platform default')
self.theme_label.pack()
def change_theme(self):
try:
theme = self.available_themes[self.theme_idx]
except IndexError:
theme = self.available_themes[0]
self.theme_idx = 0
self.style.theme_use(theme)
self.theme_label.configure(text=theme)
self.theme_idx += 1
root = tk.Tk()
app = App(root)
root.mainloop()
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Exploring Python for next desktop GUI Project Noble Bell <noblebell@gmail.com> - 2014-07-24 08:57 -0700
Re: Exploring Python for next desktop GUI Project INADA Naoki <songofacandy@gmail.com> - 2014-07-25 01:20 +0900
Re: Exploring Python for next desktop GUI Project Zachary Ware <zachary.ware+pylist@gmail.com> - 2014-07-24 11:22 -0500
Re: Exploring Python for next desktop GUI Project Grant Edwards <invalid@invalid.invalid> - 2014-07-24 16:37 +0000
Re: Exploring Python for next desktop GUI Project Zachary Ware <zachary.ware+pylist@gmail.com> - 2014-07-24 13:17 -0500
Re: Exploring Python for next desktop GUI Project Chris Angelico <rosuav@gmail.com> - 2014-07-25 02:18 +1000
Re: Exploring Python for next desktop GUI Project Noble Bell <noblebell@gmail.com> - 2014-07-24 09:29 -0700
Re: Exploring Python for next desktop GUI Project Chris Angelico <rosuav@gmail.com> - 2014-07-25 02:46 +1000
Re: Exploring Python for next desktop GUI Project Michael Torrie <torriem@gmail.com> - 2014-07-24 15:38 -0600
Re: Exploring Python for next desktop GUI Project Chris “Kwpolska” Warrick <kwpolska@gmail.com> - 2014-07-24 19:04 +0200
Re: Exploring Python for next desktop GUI Project Chris Angelico <rosuav@gmail.com> - 2014-07-25 03:09 +1000
Re: Exploring Python for next desktop GUI Project Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-07-24 19:04 +0100
Re: Exploring Python for next desktop GUI Project Chris Angelico <rosuav@gmail.com> - 2014-07-25 04:15 +1000
Re: Exploring Python for next desktop GUI Project Zachary Ware <zachary.ware+pylist@gmail.com> - 2014-07-24 13:33 -0500
Re: Exploring Python for next desktop GUI Project Grant Edwards <invalid@invalid.invalid> - 2014-07-24 21:17 +0000
Re: Exploring Python for next desktop GUI Project Chris Angelico <rosuav@gmail.com> - 2014-07-25 04:51 +1000
Re: Exploring Python for next desktop GUI Project Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2014-07-25 10:28 +1200
Re: Exploring Python for next desktop GUI Project Chris “Kwpolska” Warrick <kwpolska@gmail.com> - 2014-07-24 21:02 +0200
Re: Exploring Python for next desktop GUI Project Grant Edwards <invalid@invalid.invalid> - 2014-07-24 21:24 +0000
Re: Exploring Python for next desktop GUI Project Zachary Ware <zachary.ware+pylist@gmail.com> - 2014-07-24 14:10 -0500
Re: Exploring Python for next desktop GUI Project Glenn Linderman <v+python@g.nevcal.com> - 2014-07-24 12:11 -0700
Re: Exploring Python for next desktop GUI Project Ian Kelly <ian.g.kelly@gmail.com> - 2014-07-24 13:32 -0600
Re: Exploring Python for next desktop GUI Project Noble Bell <noblebell@gmail.com> - 2014-07-24 13:10 -0700
Re: Exploring Python for next desktop GUI Project Rob Gaddi <rgaddi@technologyhighland.invalid> - 2014-07-24 13:46 -0700
Re: Exploring Python for next desktop GUI Project Zachary Ware <zachary.ware+pylist@gmail.com> - 2014-07-24 15:13 -0500
Re: Exploring Python for next desktop GUI Project Michael Torrie <torriem@gmail.com> - 2014-07-24 15:24 -0600
Re: Exploring Python for next desktop GUI Project Michael Torrie <torriem@gmail.com> - 2014-07-24 15:29 -0600
Re: Exploring Python for next desktop GUI Project Michael Torrie <torriem@gmail.com> - 2014-07-24 15:32 -0600
Re: Exploring Python for next desktop GUI Project ismeal shanshi <stuffstorehouse2014@gmail.com> - 2014-07-24 14:44 -0700
Re: Exploring Python for next desktop GUI Project Terry Reedy <tjreedy@udel.edu> - 2014-07-24 19:25 -0400
Re: Exploring Python for next desktop GUI Project wxjmfauth@gmail.com - 2014-07-26 00:48 -0700
Re: Exploring Python for next desktop GUI Project Terry Reedy <tjreedy@udel.edu> - 2014-07-24 19:35 -0400
Re: Exploring Python for next desktop GUI Project Noble Bell <noblebell@gmail.com> - 2014-07-25 06:37 -0700
Re: Exploring Python for next desktop GUI Project Sturla Molden <sturla.molden@gmail.com> - 2014-07-25 20:04 +0000
Re: Exploring Python for next desktop GUI Project CM <cmpython@gmail.com> - 2014-07-27 10:53 -0700
Re: Exploring Python for next desktop GUI Project pecore@pascolo.net - 2014-07-29 00:00 +0200
Re: Exploring Python for next desktop GUI Project Roy Smith <roy@panix.com> - 2014-07-28 18:01 -0400
Re: Exploring Python for next desktop GUI Project pecore@pascolo.net - 2014-07-29 21:47 +0200
csiph-web