Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #93819
| From | Grant Edwards <invalid@invalid.invalid> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: beginners choice: wx or tk? |
| Date | 2015-07-14 17:28 +0000 |
| Organization | PANIX Public Access Internet and UNIX, NYC |
| Message-ID | <mo3gr6$ils$2@reader1.panix.com> (permalink) |
| References | (2 earlier) <mo0ip3$48j$1@reader1.panix.com> <mailman.474.1436840181.3674.python-list@python.org> <mo350i$dua$3@reader1.panix.com> <55A52915.8020909@gmail.com> <mailman.509.1436888648.3674.python-list@python.org> |
On 2015-07-14, Mark Lawrence <breamoreboy@yahoo.co.uk> wrote:
> On 14/07/2015 16:21, Michael Torrie wrote:
>>> Why would you have to ship "extra" libraries for Windows? Extra
>>> compared to what? When I compared bundled apps for Windows using wx
>>> and Tk, you had to ship more libraries using Tk than you did with wx.
>>> Maybe that's changed...
>>
>> You make a good point. Although Tk is considered part of the standard
>> Python library (though optional), Tk not only requires some dlls, it
>> also embeds the tcl language interpreter as well. So by some measures,
>> Tk in Python is pretty heavy, though I have no idea what the size it
>> would add to an application bundle actually is. I've always thought it
>> was a bit crazy how when you use Tk, you're actually using the Tcl
>> language as well, even though you're driving it all from Python. I
>> believe there were attempts to separate Tk from Tcl, and allow Perl/Tk
>> to replace all the Tcl code with Perl code.
>
> Surely if Tk is optional
It is.
> then IDLE is also optional,
It is.
> as IDLE depends on Tk? But I thought that IDLE was always supplied
> with Python,
That depends on who supplied the Python. Most/all of the ready-made
Windows builds include Tk, but there's no reason you can't build it
without Tk not install IDLE.
But, you can't assume that all Windows machines have _any_ Python
build installed.
> so am I missing something, or am I simply plain wrong, or what?
My point is that on Windows, _Python_ is optional. If you want to
ship a stand-alone .exe file, then you've got to ship both Python andT
Tcl/Tk or ship both Python and wx. In my experience (which was a
couple years ago), Windows wx libs were smaller than Windows Tcl+Tk
libs. wx on Windows uses native widgets. Tcl/Tk doesn't: it includes
not only the Tcl language implementation, it also includes low-level
pixel-twiddling implementations of all the widgets.
Comparing the size of Tcl+Tk and wx/Gtk doesn't really make sense
either since we're talking about MS Windows targets. Gtk isn't
involved. wxWindows on MS Windows runs on top of native widgets, not
on top of Gtk.
--
Grant Edwards grant.b.edwards Yow! VICARIOUSLY experience
at some reason to LIVE!!
gmail.com
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
beginners choice: wx or tk? Ulli Horlacher <framstag@rus.uni-stuttgart.de> - 2015-07-11 09:28 +0000
Re: beginners choice: wx or tk? Chris Angelico <rosuav@gmail.com> - 2015-07-11 19:35 +1000
Re: beginners choice: wx or tk? Ulli Horlacher <framstag@rus.uni-stuttgart.de> - 2015-07-11 09:51 +0000
Re: beginners choice: wx or tk? Chris Angelico <rosuav@gmail.com> - 2015-07-11 20:20 +1000
Re: beginners choice: wx or tk? Ulli Horlacher <framstag@rus.uni-stuttgart.de> - 2015-07-11 22:42 +0000
Re: beginners choice: wx or tk? Paul Rubin <no.email@nospam.invalid> - 2015-07-11 15:50 -0700
Re: beginners choice: wx or tk? Ulli Horlacher <framstag@rus.uni-stuttgart.de> - 2015-07-11 23:04 +0000
Re: beginners choice: wx or tk? Paul Rubin <no.email@nospam.invalid> - 2015-07-11 16:10 -0700
Re: beginners choice: wx or tk? Ulli Horlacher <framstag@rus.uni-stuttgart.de> - 2015-07-11 23:55 +0000
Re: beginners choice: wx or tk? Paul Rubin <no.email@nospam.invalid> - 2015-07-11 21:34 -0700
Re: beginners choice: wx or tk? Ian Kelly <ian.g.kelly@gmail.com> - 2015-07-11 17:59 -0600
Re: beginners choice: wx or tk? Laura Creighton <lac@openend.se> - 2015-07-12 12:00 +0200
Re: beginners choice: wx or tk? wxjmfauth@gmail.com - 2015-07-13 05:32 -0700
Re: beginners choice: wx or tk? John Ladasky <john_ladasky@sbcglobal.net> - 2015-07-11 10:25 -0700
Re: beginners choice: wx or tk? Chris Angelico <rosuav@gmail.com> - 2015-07-12 03:39 +1000
Re: beginners choice: wx or tk? Michael Torrie <torriem@gmail.com> - 2015-07-11 14:16 -0600
Re: beginners choice: wx or tk? Jugurtha Hadjar <jugurtha.hadjar@gmail.com> - 2015-07-12 01:54 +0100
Re: beginners choice: wx or tk? Grant Edwards <invalid@invalid.invalid> - 2015-07-13 14:42 +0000
Re: beginners choice: wx or tk? Michael Torrie <torriem@gmail.com> - 2015-07-13 20:16 -0600
Re: beginners choice: wx or tk? wxjmfauth@gmail.com - 2015-07-14 00:45 -0700
Re: beginners choice: wx or tk? Grant Edwards <invalid@invalid.invalid> - 2015-07-14 14:06 +0000
Re: beginners choice: wx or tk? Michael Torrie <torriem@gmail.com> - 2015-07-14 09:21 -0600
Re: beginners choice: wx or tk? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-07-14 16:43 +0100
Re: beginners choice: wx or tk? Steven D'Aprano <steve@pearwood.info> - 2015-07-15 02:53 +1000
Re: beginners choice: wx or tk? Grant Edwards <invalid@invalid.invalid> - 2015-07-14 17:28 +0000
Re: beginners choice: wx or tk? Chris Angelico <rosuav@gmail.com> - 2015-07-15 03:43 +1000
Re: beginners choice: wx or tk? Grant Edwards <invalid@invalid.invalid> - 2015-07-14 18:28 +0000
Re: beginners choice: wx or tk? Terry Reedy <tjreedy@udel.edu> - 2015-07-14 15:27 -0400
Re: beginners choice: wx or tk? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-07-14 08:39 +0100
Re: beginners choice: wx or tk? wxjmfauth@gmail.com - 2015-07-14 06:05 -0700
Re: beginners choice: wx or tk? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-07-11 11:01 +0100
Re: beginners choice: wx or tk? Christian Gollwitzer <auriocus@gmx.de> - 2015-07-11 12:19 +0200
Re: beginners choice: wx or tk? Ulli Horlacher <framstag@rus.uni-stuttgart.de> - 2015-07-11 16:04 +0000
Re: beginners choice: wx or tk? nickgeovanis@gmail.com - 2015-07-11 09:26 -0700
Re: beginners choice: wx or tk? Laura Creighton <lac@openend.se> - 2015-07-11 13:27 +0200
Re: beginners choice: wx or tk? Christian Gollwitzer <auriocus@gmx.de> - 2015-07-11 13:56 +0200
Re: beginners choice: wx or tk? Laura Creighton <lac@openend.se> - 2015-07-11 16:48 +0200
Re: beginners choice: wx or tk? Kevin Walzer <kw@codebykevin.com> - 2015-07-11 21:29 -0400
Re: beginners choice: wx or tk? Ned Deily <nad@acm.org> - 2015-07-11 22:01 -0700
Re: beginners choice: wx or tk? wxjmfauth@gmail.com - 2015-07-12 00:42 -0700
Re: beginners choice: wx or tk? Ulli Horlacher <framstag@rus.uni-stuttgart.de> - 2015-07-12 07:55 +0000
Re: beginners choice: wx or tk? Christian Gollwitzer <auriocus@gmx.de> - 2015-07-12 10:00 +0200
Re: beginners choice: wx or tk? Chris Angelico <rosuav@gmail.com> - 2015-07-12 18:54 +1000
Re: beginners choice: wx or tk? wxjmfauth@gmail.com - 2015-07-12 03:15 -0700
Re: beginners choice: wx or tk? Ned Deily <nad@acm.org> - 2015-07-11 08:09 -0700
Re: beginners choice: wx or tk? Ulli Horlacher <framstag@rus.uni-stuttgart.de> - 2015-07-11 16:01 +0000
Re: beginners choice: wx or tk? Laura Creighton <lac@openend.se> - 2015-07-11 19:37 +0200
Re: beginners choice: wx or tk? Laura Creighton <lac@openend.se> - 2015-07-11 19:55 +0200
Re: beginners choice: wx or tk? Ian Kelly <ian.g.kelly@gmail.com> - 2015-07-11 10:33 -0600
csiph-web