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


Groups > comp.lang.python > #93823

Re: beginners choice: wx or tk?

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.024
X-Spam-Evidence '*H*': 0.95; '*S*': 0.00; '*not*': 0.07; 'cc:addr :python-list': 0.09; 'scripts': 0.09; 'interpreter,': 0.09; 'python': 0.10; 'python.': 0.11; 'package,': 0.13; 'wed,': 0.15; '.py': 0.16; 'bind': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'received:mail- ig0-x22a.google.com': 0.16; 's/he': 0.16; 'unwrap': 0.16; 'wrote:': 0.16; 'comparing': 0.18; 'gui': 0.18; 'runs': 0.18; 'windows': 0.20; '2015': 0.20; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'made.': 0.22; 'tkinter': 0.22; 'am,': 0.23; 'patch': 0.24; 'header:In-Reply-To:1': 0.24; 'script': 0.25; "doesn't": 0.26; 'sense': 0.26; 'message-id:@mail.gmail.com': 0.27; 'package.': 0.27; 'comparison': 0.29; 'tcl': 0.29; "i'm": 0.30; 'that.': 0.30; "we're": 0.30; 'code': 0.30; '15,': 0.30; 'normally': 0.30; 'maybe': 0.33; 'impression': 0.33; 'that,': 0.34; 'received:google.com': 0.35; 'files,': 0.35; 'options:': 0.35; "isn't": 0.35; 'but': 0.36; 'possible': 0.36; 'smaller': 0.36; 'subject:?': 0.36; 'subject:: ': 0.37; 'responsible': 0.37; 'really': 0.37; 'release': 0.37; "won't": 0.38; 'wrong': 0.38; 'end': 0.39; 'still': 0.40; 'some': 0.40; 'your': 0.60; 'matter': 0.63; 'flat': 0.63; 'is.': 0.63; 'needs,': 0.63; 'latest': 0.64; 'detail.': 0.66; 'else.': 0.66; 'talking': 0.67; 'jul': 0.72; 'chrisa': 0.84; 'etc,': 0.84; 'gtk': 0.84; 'pygtk': 0.84; 'to:none': 0.91; 'crucial': 0.91; 'edwards': 0.91; 'involved.': 0.91
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=5uWY0ypbm9AOsTnII+JEzJBuf7WZ43419QrhjB6C//c=; b=XDjXUR9PfYPiqpH/ajvd/xYYdZCnJLmXkHY9BzfoaKmosNMZuMhKhPe8WnXrGCHIA2 SsWnhgNEOQUs65RKzVghKj/05DxT0vY+JcQIzNKGDYXxVn0k6pZR2GdIxhh/l5ctWKxG meW5VpZ20dOmAGm1EWzwNuFyRwW0g9CK2JZUtMxnK2Ox9z+TgI55oUkoh8caB+tSu9kh Yv9Lief40WHTA5EbQsYnb5XBp82UM8LBc+OeOS/BPFlaPA/e291CWdO3/+4WcNi+cLp/ cJK8rsWtJjJebvFG+2Uvpl/h+M+bTWep5jhuzuPzXyqepmzc3KpCdS47KkbppVgZBi/M uZpg==
MIME-Version 1.0
X-Received by 10.107.165.142 with SMTP id o136mr29122968ioe.120.1436895788333; Tue, 14 Jul 2015 10:43:08 -0700 (PDT)
In-Reply-To <mo3gr6$ils$2@reader1.panix.com>
References <mnqnkb$dej$1@news2.informatik.uni-stuttgart.de> <mailman.412.1436607347.3674.python-list@python.org> <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> <mo3gr6$ils$2@reader1.panix.com>
Date Wed, 15 Jul 2015 03:43:08 +1000
Subject Re: beginners choice: wx or tk?
From Chris Angelico <rosuav@gmail.com>
Cc "python-list@python.org" <python-list@python.org>
Content-Type text/plain; charset=UTF-8
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
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.510.1436895791.3674.python-list@python.org> (permalink)
Lines 35
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1436895791 news.xs4all.nl 2886 [2001:888:2000:d::a6]:39184
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:93823

Show key headers only | View raw


On Wed, Jul 15, 2015 at 3:28 AM, Grant Edwards <invalid@invalid.invalid> wrote:
> 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.

Well, let's look at three straight-forward options:

1) Python program uses tkinter
2) Python program uses wxPython
3) Python program uses PyGTK
4) (optionally) Python program uses PyGObject

Then you package your script up with all of its dependencies - Python
interpreter, GUI toolkit, and everything that they depend on - and see
how big it is. That's the comparison that matters; everything else is
implementation detail.

I had been under the impression that tkinter + Tcl + Tk + etc etc etc
was smaller than wxPython + wxWidgets + etc etc etc, but it's entirely
possible I'm flat wrong on that. It doesn't matter how Python is
normally shipped, it matters how big it's going to be when you make
that single-executable package.

But I still think it's better to *not* do that, because you bind your
deps to your code release cycle. If you make this kind of package,
most people won't know how to unwrap it and get the Python scripts out
of it, so the only thing they can do is upgrade to the latest release
that you've made. So when Python 2.7.11 comes out, maybe with some
crucial security patch that an end user needs, s/he has to wait for
you to make a new package that incorporates the latest Python. If you
ship just the .py files, you're responsible for your own code and
nothing else.

ChrisA

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


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