Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #110549
| Path | csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | MRAB <python@mrabarnett.plus.com> |
| Newsgroups | comp.lang.python |
| Subject | Re: Getting back into PyQt and not loving it. |
| Date | Mon, 27 Jun 2016 03:12:09 +0100 |
| Lines | 29 |
| Message-ID | <mailman.16.1466993542.2358.python-list@python.org> (permalink) |
| References | <7583145f-fa2a-6846-3cd9-9814c7006fdd@gmail.com> <mailman.15.1466977505.2358.python-list@python.org> <8470bc54-1cd5-49e0-852c-9729f2747319@googlegroups.com> <2883132b-f862-5b51-fff9-b98486ff7dc5@mrabarnett.plus.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Trace | news.uni-berlin.de e+8iyLTbiIseToQCFn+HlQDaMy8PsuVp/KgohH7wErFg== |
| Return-Path | <python@mrabarnett.plus.com> |
| 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; 'classes,': 0.05; 'tool,': 0.07; 'wrapped': 0.07; 'bindings': 0.09; 'porting': 0.09; 'subject:Getting': 0.09; 'subject:into': 0.09; 'tuple': 0.09; 'python': 0.10; 'python.': 0.11; 'subject:not': 0.11; '2016': 0.16; 'c++.': 0.16; 'from:addr:mrabarnett.plus.com': 0.16; 'from:addr:python': 0.16; 'from:name:mrab': 0.16; 'message- id:@mrabarnett.plus.com': 0.16; 'portable,': 0.16; 'python-based': 0.16; 'pythonic': 0.16; 'received:192.168.1.4': 0.16; 'received:84.93': 0.16; 'received:84.93.230': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'shame.': 0.16; 'subject:PyQt': 0.16; 'wrote:': 0.16; 'implementing': 0.18; 'gui': 0.18; 'class,': 0.22; 'tkinter': 0.22; 'code.': 0.23; 'header:In-Reply-To:1': 0.24; 'all.': 0.24; 'header:User-Agent:1': 0.26; "doesn't": 0.26; 'least': 0.27; 'question': 0.27; 'interface': 0.29; 'signatures': 0.29; 'ago': 0.29; 'convert': 0.29; "i'm": 0.30; 'classes': 0.30; 'code': 0.30; 'e.g.': 0.30; 'strongly': 0.30; 'received:84': 0.32; 'maybe': 0.33; 'problem': 0.33; 'michael': 0.33; "i'll": 0.33; 'worked': 0.34; 'advice': 0.35; 'next': 0.35; 'c++': 0.35; 'but': 0.36; 'project': 0.36; 'there': 0.36; 'structures': 0.36; 'to:addr :python-list': 0.36; 'subject:: ': 0.37; 'really': 0.37; 'method': 0.37; 'seem': 0.37; 'starting': 0.37; 'things': 0.38; 'itself': 0.38; 'version': 0.38; 'end': 0.39; 'data': 0.39; 'sure': 0.39; 'does': 0.39; 'received:192': 0.39; 'well.': 0.40; 'to:addr:python.org': 0.40; 'back': 0.62; 'making': 0.62; 'more': 0.63; 'different': 0.63; '26,': 0.72; 'fantastic': 0.72; 'construct': 0.84; 'etc,': 0.84; 'idiomatic': 0.84; 'reminds': 0.84; 'tkinter,': 0.84; 'utc-7,': 0.84; 'forgotten': 0.91; 'graphical': 0.91 |
| X-CM-Score | 0.00 |
| X-CNFS-Analysis | v=2.2 cv=QfYkhYTv c=1 sm=1 tr=0 a=0nF1XD0wxitMEM03M9B4ZQ==:117 a=0nF1XD0wxitMEM03M9B4ZQ==:17 a=IkcTkHD0fZMA:10 a=GElPP53qJ-GhJlB0IKoA:9 |
| X-AUTH | mrabarnett@:2500 |
| User-Agent | Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 |
| In-Reply-To | <8470bc54-1cd5-49e0-852c-9729f2747319@googlegroups.com> |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.22 |
| 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> |
| X-Mailman-Original-Message-ID | <2883132b-f862-5b51-fff9-b98486ff7dc5@mrabarnett.plus.com> |
| X-Mailman-Original-References | <7583145f-fa2a-6846-3cd9-9814c7006fdd@gmail.com> <mailman.15.1466977505.2358.python-list@python.org> <8470bc54-1cd5-49e0-852c-9729f2747319@googlegroups.com> |
| Xref | csiph.com comp.lang.python:110549 |
Show key headers only | View raw
On 2016-06-27 02:05, llanitedave wrote: > On Sunday, June 26, 2016 at 2:45:18 PM UTC-7, Michael Torrie wrote: >> I'm starting to question the advice I gave not long ago to for new users >> to consider the Qt toolkit with Python. >> >> I just did a little project porting a simple graphical user interface >> from GTK+ to Qt (PyQt4 for now as that's what I have installed). For >> the most part it worked out pretty well. It's been a while since I used >> PyQt or PySide, and I had forgotten what a horrid Python experience Qt >> really is, at least in PyQt4. Maybe the bindings for Qt5 are better... >> I'll be working with them next as I convert my working code. >> >> Qt's a fantastic toolkit, and the most mature of any of them, and the >> most portable, but man the bindings are not Pythonic at all. PyQt does >> not seem to hide the C++-isms at all from the programmer. I am >> constantly wrapping things up in Qt classes like QRect, QPoint, QSize, >> etc, when really a python Tuple would have sufficed. All the data >> structures are wrapped in Qt C++ classes, so you end up writing what is >> really idiomatic C++ code using Python syntax. Not the best way to code >> Python! Implementing signals in a class, too, reminds you strongly that >> you're working with C++ as you have to construct their method signatures >> using types that map back into C++. > > Not sure that wxPython is really any different in that respect, and Tkinter doesn't feel Pythonic to me, either -- considering how it's Tk at heart. So what's the alternative? There really is no good Python-based GUI tool, and that's a shame. > Is it a problem with Tk itself or with the Python wrapper? Would it be better if we made a more Pythonic version of Tkinter, e.g. making Frame.title a property?
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
#110541
#110547
#110548
#110549
#110567
#110550
#110562
#110564
#110595
#110603
#110617
#110566
#110607
#110623
#110952
#110953
csiph-web