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: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'win32': 0.03; 'subject:Python': 0.06; 'canvas': 0.07; 'environments': 0.07; '*is*': 0.09; 'hooks': 0.09; 'pixels': 0.09; 'screen.': 0.09; 'things,': 0.09; 'toolkit': 0.09; 'gui': 0.12; '(it': 0.16; 'benjamin': 0.16; 'non-native': 0.16; 'readers,': 0.16; 'subject:GUI': 0.16; 'sure.': 0.16; 'tab': 0.16; 'thursday,': 0.16; 'wrote:': 0.18; 'library': 0.18; 'bit': 0.19; 'drawing': 0.19; 'addition,': 0.20; 'to:name:python-list@python.org': 0.22; 'looks': 0.24; 'least': 0.26; 'header:In-Reply-To:1': 0.27; 'specifically': 0.29; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; 'bunch': 0.31; 'sep': 0.31; 'yourself.': 0.31; 'stuff': 0.32; 'text': 0.33; 'mac': 0.33; 'plain': 0.33; 'screen': 0.34; 'received:209.85': 0.35; 'knows': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'consistent': 0.36; 'controls': 0.36; 'yours,': 0.36; 'possible': 0.36; 'subject:?': 0.36; 'operating': 0.37; 'received:209': 0.37; 'to:addr:python-list': 0.38; 'little': 0.38; 'does': 0.39; '12,': 0.39; 'to:addr:python.org': 0.39; 'how': 0.40; 'read': 0.60; 'blank': 0.60; 'ago.': 0.61; 'such': 0.63; 'provide': 0.64; 'more': 0.64; 'situation': 0.65; 'between': 0.67; 'behavior': 0.77; 'rusi': 0.91; '2013': 0.98 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=pSFOVSnwD21iepHZfnZFFUflZUPhSrjPoEzai7TFMi4=; b=Md+do6tAsnOL6kOiQVGaZHrOSnCTRbHf4JALwGVXloDr0Vax0k2TbAv50l1sr+0k3w RXOu6zmI2V9/t7dqAFZM4kf4oAx4KB4bS35fOcr3ELidbmJEqwSgNbKsf39I24Q0rq/9 hmcC8HFwq9twpswx3PFf8iOgDkhuk5cOHw2HGHKtVlyGyFZyzo7oqXm4QLxdslFef8/V qfO+ErQijskGsKqIbR33o+rlZf0zVsjAWnMEcp1IT9rEv8x6dyMfXpLgO2Fttpz4l35n WaUpKYwih2FNMzIRIZp9JIeQo7uTJHpj6Danr/yaFGD1C8k8BKI18iqFQ/9LQkGjDuSE 8bSg== X-Gm-Message-State: ALoCoQm+Y/cBAcVYtbCfqK95/7/8d9+BjnucAPurrESVawsv6R0MY3d9ugWvG4J++wrgKc7GRQiCXqEI4Inpr7cp+mwwrHxgJc9QhUjX9wB1Y5qX/+8IpGOvdw1sIZ+Q/UjW5AQF4z4AwTuYxOMTh9o6XBWz0NIt7Q== X-Received: by 10.60.52.81 with SMTP id r17mr31067436oeo.3.1379434788411; Tue, 17 Sep 2013 09:19:48 -0700 (PDT) X-Received: by 10.60.52.81 with SMTP id r17mr31067427oeo.3.1379434788273; Tue, 17 Sep 2013 09:19:48 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <63de767b-1df3-4981-b86e-dbf8fa10c9e0@googlegroups.com> References: <1a8b14b3-85f3-4515-ba43-9b40e1a89f1d@googlegroups.com> <63de767b-1df3-4981-b86e-dbf8fa10c9e0@googlegroups.com> From: Benjamin Kaplan Date: Tue, 17 Sep 2013 09:19:28 -0700 Subject: Re: Python GUI? To: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 X-Junkmail-Whitelist: YES (by domain whitelist at mpv2.tis.cwru.edu) 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: 32 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1379435171 news.xs4all.nl 15888 [2001:888:2000:d::a6]:40144 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:54321 On Tue, Sep 17, 2013 at 7:55 AM, rusi wrote: > On Thursday, September 12, 2013 10:21:49 PM UTC+5:30, Benjamin Kaplan wrote: > >> The main difference between wx and qt is that qt looks native on every platform >> while wx *is* native on every platform (it uses native controls wherever >> possible). This means that wx integrates into the OS better, but your also more >> likely to need OS-specific tweaks in wx, at least from my experience from a few >> years ago. > > For someone who is GUI-challenged, can you please expand on that a bit? > -- Sure. Every platform provides its own GUI library (Cocoa on Mac OS X, Win32 on Windows). Other programs that want to hook into yours, such as screen readers, are familiar with the platform's native GUI elements- it knows what a Win32 combo box is, and it knows how to read the text inside it. The other way to make a GUI is to take a blank canvas and draw on it yourself. This is more flexible and provides a more consistent experience across platforms, but unless you specifically go out of your way to provide hooks for other programs to jump in, all they see is a bunch of pixels on the screen. In addition, drawing your own stuff won't necessarily give you the "normal for the operating system" behavior on other things, like tab behavior. It's possible for non-native GUI environments to mimic this behavior (and QT does a pretty good job of this), but there's always going to be little things that seem a bit off. The situation is a bit more complicated because QT is the native toolkit on KDE, so in that environment, QT will be more "correct" than wx, which would be using GTK if present and plain X11 if it isn't.