Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #11019 > unrolled thread

WxPython and TK

Started byazrael <jura.grozni@gmail.com>
First post2011-08-07 17:26 -0700
Last post2011-08-09 13:12 +0200
Articles 8 — 8 participants

Back to article view | Back to comp.lang.python


Contents

  WxPython and TK azrael <jura.grozni@gmail.com> - 2011-08-07 17:26 -0700
    Re: WxPython and TK Ian Kelly <ian.g.kelly@gmail.com> - 2011-08-07 22:29 -0600
    Re: WxPython and TK Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2011-08-08 18:06 +1200
    Re: WxPython and TK Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-08-08 16:37 +1000
    Re: WxPython and TK ln4 <joepie@linux.nl> - 2011-08-08 08:46 +0200
    Re: WxPython and TK python@bdurham.com - 2011-08-08 06:10 -0400
    Re: WxPython and TK Philip Semanchuk <philip@semanchuk.com> - 2011-08-08 11:49 -0400
    Re: WxPython and TK gb@como.it - 2011-08-09 13:12 +0200

#11019 — WxPython and TK

Fromazrael <jura.grozni@gmail.com>
Date2011-08-07 17:26 -0700
SubjectWxPython and TK
Message-ID<b06f7a6e-79c1-4b50-bd9a-c9a1784eff9f@glegroupsg2000goo.googlegroups.com>
Today I found a quote from Guido.

wxPython is the best and most mature cross-platform GUI toolkit, given a number of constraints. The only reason wxPython isn't the standard Python GUI toolkit is that Tkinter was there first.
-- Guido van Rossum

OK, now. Isn't it maybe time to throw out TK once and for all? Python is missing one of the most important aspects of todays IT industry. GUI development native library (I mean a serious one).

If I would have gotten a dollar for every time I talked to someone in a company about why they dont use python for their products and I was served the answer "Well it kind of sucks in GUI development", I would be a millionaire.

[toc] | [next] | [standalone]


#11023

FromIan Kelly <ian.g.kelly@gmail.com>
Date2011-08-07 22:29 -0600
Message-ID<mailman.2022.1312777803.1164.python-list@python.org>
In reply to#11019
On Sun, Aug 7, 2011 at 6:26 PM, azrael <jura.grozni@gmail.com> wrote:
> Today I found a quote from Guido.
>
> wxPython is the best and most mature cross-platform GUI toolkit, given a number of constraints. The only reason wxPython isn't the standard Python GUI toolkit is that Tkinter was there first.
> -- Guido van Rossum
>
> OK, now. Isn't it maybe time to throw out TK once and for all? Python is missing one of the most important aspects of todays IT industry. GUI development native library (I mean a serious one).
>
> If I would have gotten a dollar for every time I talked to someone in a company about why they dont use python for their products and I was served the answer "Well it kind of sucks in GUI development", I would be a millionaire.

That may be the only reason Tkinter was originally added to the
standard library rather than wxPython, but there are plenty of reasons
against changing it now.  Even ignoring for the moment the fact that
wxPython *still* doesn't work with Python 3 (2.5 years now since the
initial release of Python 3.0), here is a nice, recent summary of some
of the issues involved:

http://mail.python.org/pipermail/python-list/2011-January/1264955.html

Cheers,
Ian

[toc] | [prev] | [next] | [standalone]


#11025

FromGregory Ewing <greg.ewing@canterbury.ac.nz>
Date2011-08-08 18:06 +1200
Message-ID<9a9cnrFumuU1@mid.individual.net>
In reply to#11019
azrael wrote:

> If I would have gotten a dollar for every time I talked to someone in a company
> about why they dont use python for their products and I was served the answer
> "Well it kind of sucks in GUI development", I would be a millionaire.

Even assuming that Python + wxPython sucks less than
Python + Tkinter (which is a matter of opinion), putting
wxPython in the standard library would change very little.
Anyone who wants to is already free to use wxPython now.

-- 
Greg

[toc] | [prev] | [next] | [standalone]


#11026

FromSteven D'Aprano <steve+comp.lang.python@pearwood.info>
Date2011-08-08 16:37 +1000
Message-ID<4e3f841e$0$30002$c3e8da3$5496439d@news.astraweb.com>
In reply to#11019
On Mon, 8 Aug 2011 10:26 am azrael wrote:

> Today I found a quote from Guido.
> 
> wxPython is the best and most mature cross-platform GUI toolkit, given a
> number of constraints. The only reason wxPython isn't the standard Python
> GUI toolkit is that Tkinter was there first. -- Guido van Rossum

I'd like to see the context for this quote, because I don't think it is
correct. Even if Guido did say it :)

Other reasons contributing to why wxPython is not in the standard library:

- Differences in the licence. I understand the wxWidgets licence is more
restrictive than the Python licence.

- Size: wxPython is much larger than Tkinter. By one account, adding
wxPython would triple the size of the standard library.

- Tcl/Tk is likely to already be installed on most Linux systems, wxWidgets
may not be.

- Stability: at least a few years ago, it was quite easy to get wxPython to
seg fault.

- Pythonicity: Tkinter code is much closer to Pythonic style of code than
wxPython code, which is stylistically closer to C++.

- Release schedules: this is likely to be the fatal sticking block. To be
part of the standard library, wxPython would have to keep to Python's
release schedule.

If wxPython had been in the standard library, it would have been tied to
Python's relatively sedate schedule, and would not have been able to keep
up with wxWidgets.


> OK, now. Isn't it maybe time to throw out TK once and for all? Python is
> missing one of the most important aspects of todays IT industry. GUI
> development native library (I mean a serious one).

Python is not missing any such thing. It has a plethora of GUI libraries:

wxPython
Tkinter
Pyjamas
Dabo
PyGTK
PythonCard
etc.

See http://wiki.python.org/moin/GuiProgramming


> If I would have gotten a dollar for every time I talked to someone in a
> company about why they dont use python for their products and I was served
> the answer "Well it kind of sucks in GUI development", I would be a
> millionaire.

What, these millions of companies don't have internet?

http://www.wxpython.org/download.php#stable



-- 
Steven

[toc] | [prev] | [next] | [standalone]


#11028

Fromln4 <joepie@linux.nl>
Date2011-08-08 08:46 +0200
Message-ID<j1o0lo$1i8$1@usenet.uva.nl>
In reply to#11019
azrael wrote:

> Today I found a quote from Guido.
> 
> wxPython is the best and most mature cross-platform GUI toolkit, given a
> number of constraints. The only reason wxPython isn't the standard Python
> GUI toolkit is that Tkinter was there first. -- Guido van Rossum
> 
> OK, now. Isn't it maybe time to throw out TK once and for all? Python is
> missing one of the most important aspects of todays IT industry. GUI
> development native library (I mean a serious one).
> 
> If I would have gotten a dollar for every time I talked to someone in a
> company about why they dont use python for their products and I was served
> the answer "Well it kind of sucks in GUI development", I would be a
> millionaire.

This quote from guido is perhaps from many, many years ago. I don't like 
wxpython so much. There is a much better solution available: using PyQt. Qt 
libraries are cross platform too, mature code and very fast. Including lots 
of tools for development without typing all the graphics code.
Taco

[toc] | [prev] | [next] | [standalone]


#11031

Frompython@bdurham.com
Date2011-08-08 06:10 -0400
Message-ID<mailman.2027.1312798233.1164.python-list@python.org>
In reply to#11019
Azrael,

> Isn't it maybe time to throw out TK once and for all? Python is missing one of the most important aspects of todays IT industry. GUI development native library (I mean a serious one).

Check out enhancements to Tk like Ttk included in Python 2.7 and 3.1 and
above.
http://www.tkdocs.com/tutorial/styles.html

Tk/Ttk is a much lighter weight GUI than wxPython and allows for
commercial quality, cross-platform GUI development.

Malcolm


[toc] | [prev] | [next] | [standalone]


#11036

FromPhilip Semanchuk <philip@semanchuk.com>
Date2011-08-08 11:49 -0400
Message-ID<mailman.2035.1312818598.1164.python-list@python.org>
In reply to#11019
On Aug 7, 2011, at 8:26 PM, azrael wrote:

> Today I found a quote from Guido.
> 
> wxPython is the best and most mature cross-platform GUI toolkit, given a number of constraints. The only reason wxPython isn't the standard Python GUI toolkit is that Tkinter was there first.
> -- Guido van Rossum
> 
> OK, now. Isn't it maybe time to throw out TK once and for all? Python is missing one of the most important aspects of todays IT industry. GUI development native library (I mean a serious one).

I don't see how removing TK from the standard library helps to fill the native GUI development library void that you see in 
Python. I guess you're promoting wxPython as the library to fill that void. Getting rid of TK is one argument, adding wxPython is different argument. Are you advocating one, the other, or both?



> If I would have gotten a dollar for every time I talked to someone in a company about why they dont use python for their products and I was served the answer "Well it kind of sucks in GUI development", I would be a millionaire.

And if I had a dollar for every "Let's replace TK with XYZ" post, I'd also be a millionaire. 

I don't object to your argument; criticism of standard library is how it advances. But you're going to have to come up with a better argument than a 5+ year old quote from Guido and an exaggerated claim about why people don't use Python. The "best Python GUI library" conversation is repeated on this list at least once every few months. If the subject really interests you, I recommend that you read the archives and see some of the arguments for and against various GUI toolkits. 

Cheers
Philip

[toc] | [prev] | [next] | [standalone]


#11067

Fromgb@como.it
Date2011-08-09 13:12 +0200
Message-ID<86pqkeon3x.fsf@aiuole.stru.polimi.it>
In reply to#11019
azrael writes:

> OK, now. Isn't it maybe time to throw out TK once and for all?

no, because Tk has a clear advantage over many other UI tolkits
Tk _was designed_ and it was designed by very competent people [1]

good luck with smurfs' hunting [2], ciao
                                                         gb

[1]:  1986-91 ACM's Grace Murray Hopper Awards
      1986 William N. Joy,      BSD Unix, Sun;
      1987 John Ousterhout,     Tcl/TK;
      1988 Guy L. Steele,       Scheme, Java;
      1989 W. Daniel Hillis     Thinking Machines;
      1990 Richard Stallman     Emacs, Gcc, FSF;
      1991 Feng-hsiung Hsu      Deep Blue;

[2]   http://www.smurf.com/smurf.php/www/who/en/azrael

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web