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


Groups > comp.lang.python > #62113

Re: GUI:-please answer want to learn GUI programming in python , how should i proceed.

References (7 earlier) <l8n48p$fmn$1@dont-email.me> <mailman.4219.1387207214.18130.python-list@python.org> <l8n6dv$tg5$1@dont-email.me> <mailman.4221.1387210260.18130.python-list@python.org> <l8ntg8$lpt$1@dont-email.me>
Date 2013-12-17 09:40 +1100
Subject Re: GUI:-please answer want to learn GUI programming in python , how should i proceed.
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.4240.1387233610.18130.python-list@python.org> (permalink)

Show all headers | View raw


On Tue, Dec 17, 2013 at 9:06 AM, Christian Gollwitzer <auriocus@gmx.de> wrote:
> Let the flame war begin!

I'll try to avoid flamage :)

> First off, gitk is a huge unstructured mess. You are not obliged to write
> programs like this in Tcl, at least not today. All these global statements
> give already a hint, that this is a procedural thing. Think of Python, where
> classes are stripped. Tcl has object oriented frameworks for years. If you
> use Snit, e.g., all those globals are not needed because they are really
> instance variables.

Ah, okay. Don't take gitk as representative. Got it. Unfortunately
there are quite a few languages that I've experienced from, really,
only one program that I've tried to modify (Scheme almost falls in
that category too - all I've ever used it for is LilyPond scripting,
and not much of that), and I'm aware that's not really a fair look at
the language.

>> First off, everything's done with commands, rather than assignment
>> ("set diffinhdr 0"), which is very shell-style and not very
>> programming-style.
>
> This is just syntax and purely a matter of taste.

Yeah. Like I said,

>> Can live with that

. But my rule of thumb with bash scripts is: If it exceeds a page or
two in length, it's probably time it got rewritten in an application
language. When a program is the size of gitk (>10KLOC), the benefits
relating to interactive use (as you mention below) become less
significant, and benefits relating to discoverability of the more
obscure features become more significant.

> It does command substitution (indeed the brackets [] do) and is one of the
> key concepts of Tcl. mc is probably the command from msgcat which translates
> i18n strings. Complaining about these basic things is like complaining about
> indentation in Python.

Okay. Now, how am I to figure out where this command comes from? It's
not a host command (typing "mc" at the bash prompt comes up failure),
and it's not defined in the script itself (at least, I can't find
"proc mc" anywhere); is it a Tcl built-in? Where do I start looking?

(Yes, I'm aware this is a problem in any language. I'm not now raising
a point in the Python vs Tcl debate, I'm just asking out of
curiosity.)

> Tcl also has some strengths.
>
> First off, the syntax is quite flexible, and so things like list
> comprehensions[1] or classes[2] can be implemented in Tcl itself. Second,
> it's great at interactive use because at a command prompt, you don't want to
> type all those () call operators, "quotes" and obey indentation just to get
> a simple loop running. Third, its implementation features a few unique
> things:

Yeah, that's nice for the interactive interpreter... but I already
have bash for that, and Python's not far off. I've used interactive
Pike and REXX interpreters, which are both more demanding than Python
(in terms of syntax requirements and such), so I'm perfectly happy
with Python; but if you're used to something even lighter, then sure,
use something that lets you type almost nothing. No problem. I just
think that - as mentioned above - a ten thousand line program should
be aiming more at maintainability than ease of manual typing.

> * Safe interpreters. Sometimes requested here for Python, you can create a
> slave interpreter in Tcl that is restricted and cannot do disk I/O, has
> limited execution time etc. You can precisely control which commands are
> passed on to the slave.

Cool. Not enough for me to choose the language unless I really REALLY
needed that feature, but there was one time in my programming career
when that was true, so we'll count that a win.

> * Interpreters in threads. There is no GIL, Tcl interpreters are thread safe
> and more than one can coexist in a process and run concurrently. This is
> accessible from script level through the Threads package.

Nice, though Python's threading and/or multiprocessing can do 90% of
what people want. Side point: What about Tk? Can you (a) run separate
GUI threads for separate windows? (b) manipulate widgets created by
another thread?

> * Very easy deployment: Starkits/Tclkits bundle an interpreter within a
> single executable. Similar to what pyinstaller does. But in my experience,
> it's much easier to pack all dependencies into a starkit than it is with
> pyinstaller. You can get a rather full-fledged interpreter with GUI support
> into a few megabytes, and I've never seen it fail.

Never really needed this, but for the people who do, I'm sure that's a
fairly big deal.

So there definitely are some advantages that Tcl has over Python. Put
against them is a superior object model, a large corpus of first-class
object types (dict, set, list, etc[1]), and a syntax that more clearly
differentiates names and strings without making variable references
look like a lot more than they are.

Huge room in the world for both languages to exist and thrive.

ChrisA

[1] What is an etc() in Python?

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


Thread

GUI:-please answer  want to learn GUI programming in python  , how should i proceed. Jai <jaiprakashsingh213@gmail.com> - 2013-12-14 04:12 -0800
  Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Chris Angelico <rosuav@gmail.com> - 2013-12-14 23:25 +1100
    Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Jai <jaiprakashsingh213@gmail.com> - 2013-12-14 04:46 -0800
    Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. rurpy@yahoo.com - 2013-12-14 09:42 -0800
      Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-14 18:11 +0000
      Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Michael Torrie <torriem@gmail.com> - 2013-12-14 13:10 -0700
  Re: GUI:-please answer  want to learn GUI programming in python  , how should i proceed. Wolfgang Keller <feliphil@gmx.net> - 2013-12-14 18:05 +0100
    Re: GUI:-please answer  want to learn GUI programming in python  , how should i proceed. Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-14 17:54 +0000
    Re: GUI:-please answer  want to learn GUI programming in python  , how should i proceed. Michael Torrie <torriem@gmail.com> - 2013-12-14 13:01 -0700
      Re: GUI:-please answer  want to learn GUI programming in python  , how should i proceed. Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-12-14 22:59 +0000
        Re: GUI:-please answer  want to learn GUI programming in python  , how should i proceed. Grant Edwards <invalid@invalid.invalid> - 2013-12-15 14:53 +0000
          Re: GUI:-please answer  want to learn GUI programming in python  , how should i proceed. Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-12-15 17:01 +0000
            Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Chris Angelico <rosuav@gmail.com> - 2013-12-16 09:06 +1100
              Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Kevin Walzer <kw@codebykevin.com> - 2013-12-16 09:55 -0500
                Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Chris Angelico <rosuav@gmail.com> - 2013-12-17 02:20 +1100
                Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Kevin Walzer <kw@codebykevin.com> - 2013-12-16 10:32 -0500
                Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Chris Angelico <rosuav@gmail.com> - 2013-12-17 03:10 +1100
                Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Grant Edwards <invalid@invalid.invalid> - 2013-12-16 16:46 +0000
                Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Chris Angelico <rosuav@gmail.com> - 2013-12-17 03:52 +1100
                Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Grant Edwards <invalid@invalid.invalid> - 2013-12-16 17:04 +0000
                Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Christian Gollwitzer <auriocus@gmx.de> - 2013-12-16 23:12 +0100
                Re: GUI:-please answer want to learn GUI programming in python ,   how should i proceed. Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2013-12-17 11:37 +1300
                Re: GUI:-please answer want to learn GUI programming in python ,   how should i proceed. Grant Edwards <invalid@invalid.invalid> - 2013-12-17 04:27 +0000
                Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Christian Gollwitzer <auriocus@gmx.de> - 2013-12-16 23:06 +0100
                Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Chris Angelico <rosuav@gmail.com> - 2013-12-17 09:40 +1100
                Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Christian Gollwitzer <auriocus@gmx.de> - 2013-12-17 10:33 +0100
                Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Chris Angelico <rosuav@gmail.com> - 2013-12-18 00:19 +1100
                Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Terry Reedy <tjreedy@udel.edu> - 2013-12-16 19:10 -0500
                Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-17 04:21 +0000
            Re: GUI:-please answer  want to learn GUI programming in python  , how should i proceed. Rick Johnson <rantingrickjohnson@gmail.com> - 2013-12-16 21:37 -0800
              Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Chris Angelico <rosuav@gmail.com> - 2013-12-17 16:47 +1100
              Re: GUI:-please answer  want to learn GUI programming in python  , how should i proceed. Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-17 05:48 +0000
                Re: GUI:-please answer  want to learn GUI programming in python  , how should i proceed. wxjmfauth@gmail.com - 2013-12-16 23:58 -0800
                Re: GUI:-please answer  want to learn GUI programming in python  , how should i proceed. Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-17 08:33 +0000
                Re: GUI:-please answer  want to learn GUI programming in python  , how should i proceed. wxjmfauth@gmail.com - 2013-12-17 01:18 -0800
                Re: GUI:-please answer  want to learn GUI programming in python  , how should i proceed. Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-17 09:44 +0000
                Re: GUI:-please answer  want to learn GUI programming in python  , how should i proceed. Steven D'Aprano <steve@pearwood.info> - 2013-12-17 09:29 +0000
                Re: GUI:-please answer  want to learn GUI programming in python  , how should i proceed. Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-17 09:39 +0000
                Re: GUI:-please answer  want to learn GUI programming in python  , how should i proceed. Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-12-17 11:13 +0000
                Re: GUI:-please answer  want to learn GUI programming in python  , how should i proceed. Robert Kern <robert.kern@gmail.com> - 2013-12-17 13:03 +0000
                Re: GUI:-please answer  want to learn GUI programming in python  , how should i proceed. wxjmfauth@gmail.com - 2013-12-17 06:02 -0800
                Re: GUI:-please answer  want to learn GUI programming in python  , how should i proceed. wxjmfauth@gmail.com - 2013-12-17 06:43 -0800
                Re: GUI:-please answer  want to learn GUI programming in python  , how should i proceed. Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-17 14:52 +0000
                Re: GUI:-please answer  want to learn GUI programming in python  , how should i proceed. Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-17 13:47 +0000
                Re: GUI:-please answer  want to learn GUI programming in python  , how should i proceed. wxjmfauth@gmail.com - 2013-12-17 04:19 -0800
                Fwd: GUI:-please answer want to learn GUI programming in python , how should i proceed. Igor Korot <ikorot01@gmail.com> - 2013-12-17 05:28 -0800
              Re: GUI:-please answer  want to learn GUI programming in python  , how should i proceed. Christian Gollwitzer <auriocus@gmx.de> - 2013-12-17 09:11 +0100
    Re: GUI:-please answer  want to learn GUI programming in python  , how should i proceed. Michael Torrie <torriem@gmail.com> - 2013-12-14 13:04 -0700
      Re: GUI:-please answer  want to learn GUI programming in python  , how should i proceed. Wolfgang Keller <feliphil@gmx.net> - 2013-12-15 16:33 +0100
        Re: GUI:-please answer  want to learn GUI programming in python  , how should i proceed. Michael Torrie <torriem@gmail.com> - 2013-12-15 10:19 -0700
        Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Chris “Kwpolska” Warrick <kwpolska@gmail.com> - 2013-12-15 18:52 +0100
          Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Wolfgang Keller <feliphil@gmx.net> - 2013-12-17 16:26 +0100
        Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-15 17:59 +0000
    Re: GUI:-please answer  want to learn GUI programming in python , how should i proceed. Ned Deily <nad@acm.org> - 2013-12-14 12:36 -0800
    Re: GUI:-please answer  want to learn GUI programming in python  , how should i proceed. Terry Reedy <tjreedy@udel.edu> - 2013-12-14 16:00 -0500
    Re: GUI:-please answer  want to learn GUI programming in python , how should i proceed. Jeremy Sanders <jeremy@jeremysanders.net> - 2013-12-16 09:28 +0100
  Re: GUI:-please answer  want to learn GUI programming in python  , how should i proceed. Tamer Higazi <tameritoke2@arcor.de> - 2013-12-16 02:34 +0200
  Re: GUI:-please answer  want to learn GUI programming in python  , how should i proceed. Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-16 01:18 +0000
  Re: GUI:-please answer  want to learn GUI programming in python , how should i proceed. Tamer Higazi <tameritoke2@arcor.de> - 2013-12-16 06:09 +0200
    Re: GUI:-please answer  want to learn GUI programming in python , how should i proceed. Wolfgang Keller <feliphil@gmx.net> - 2013-12-17 16:07 +0100
      Re: GUI:-please answer  want to learn GUI programming in python , how should i proceed. Terry Reedy <tjreedy@udel.edu> - 2013-12-17 13:11 -0500
        Re: GUI:-please answer  want to learn GUI programming in python , how should i proceed. Wolfgang Keller <feliphil@gmx.net> - 2013-12-23 18:59 +0100
          Re: GUI:-please answer  want to learn GUI programming in python , how should i proceed. wxjmfauth@gmail.com - 2013-12-23 11:05 -0800
            Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Chris Angelico <rosuav@gmail.com> - 2013-12-24 06:14 +1100
            Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-23 19:22 +0000
            Please stop the trolling Terry Reedy <tjreedy@udel.edu> - 2013-12-23 15:53 -0500
              Re: Please stop the trolling wxjmfauth@gmail.com - 2013-12-24 02:22 -0800
                Re: Please stop the trolling Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-24 14:58 +0000
                Re: Please stop the trolling Ned Batchelder <ned@nedbatchelder.com> - 2013-12-24 10:28 -0500
                Re: Please stop the trolling Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-24 15:55 +0000
                Re: Please stop the trolling Ned Batchelder <ned@nedbatchelder.com> - 2013-12-24 11:04 -0500
            Re: Please stop the trolling Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-23 23:52 +0000
            Re: Please stop the trolling Joshua Landau <joshua@landau.ws> - 2013-12-26 07:58 +0000
  Re: GUI:-please answer  want to learn GUI programming in python , how should i proceed. Michael Torrie <torriem@gmail.com> - 2013-12-15 21:51 -0700
    Re: GUI:-please answer  want to learn GUI programming in python , how should i proceed. Wolfgang Keller <feliphil@gmx.net> - 2013-12-17 16:01 +0100
  Re: GUI:-please answer  want to learn GUI programming in python , how should i proceed. Michael Torrie <torriem@gmail.com> - 2013-12-15 21:55 -0700
  Re: GUI:-please answer  want to learn GUI programming in python , how should i proceed. Michael Torrie <torriem@gmail.com> - 2013-12-15 21:56 -0700
  Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Chris Angelico <rosuav@gmail.com> - 2013-12-16 15:57 +1100
  Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Chris Angelico <rosuav@gmail.com> - 2013-12-16 16:08 +1100
    Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Wolfgang Keller <feliphil@gmx.net> - 2013-12-17 16:00 +0100
      Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Michael Torrie <torriem@gmail.com> - 2013-12-17 11:06 -0700
        Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. wxjmfauth@gmail.com - 2013-12-17 11:00 -0800
          Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-17 19:33 +0000
          Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. wxjmfauth@gmail.com - 2013-12-18 01:24 -0800
            Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-18 16:45 +0000
          Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. wxjmfauth@gmail.com - 2013-12-19 00:10 -0800
            Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-19 08:25 +0000
              Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. wxjmfauth@gmail.com - 2013-12-19 01:10 -0800
                Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-19 09:23 +0000
        Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Wolfgang Keller <feliphil@gmx.net> - 2013-12-19 16:32 +0100
          Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Chris Angelico <rosuav@gmail.com> - 2013-12-20 03:20 +1100
          Re: GUI:-please answer want to learn GUI programming in python , 
 how should i proceed. Dave Angel <davea@davea.name> - 2013-12-20 01:30 -0500
          Re: Re: GUI:-please answer want to learn GUI programming in python ,  how should i proceed. Chris Angelico <rosuav@gmail.com> - 2013-12-20 17:57 +1100
            Re: GUI:-please answer want to learn GUI programming in python ,  how should i proceed. Martin Schöön <martin.schoon@gmail.com> - 2013-12-20 17:52 +0000
              Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-20 18:00 +0000
                Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Martin Schöön <martin.schoon@gmail.com> - 2013-12-21 13:25 +0000
              Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. wxjmfauth@gmail.com - 2013-12-20 10:34 -0800
  Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-16 09:42 +0000
  Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Chris Angelico <rosuav@gmail.com> - 2013-12-16 22:58 +1100
  Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-16 13:58 +0000
  Re: GUI:-please answer  want to learn GUI programming in python  , how should i proceed. 88888 Dihedral <dihedral88888@gmail.com> - 2013-12-16 08:34 -0800
    Re: GUI:-please answer  want to learn GUI programming in python  , how should i proceed. Wolfgang Keller <feliphil@gmx.net> - 2013-12-17 16:00 +0100
      Re: GUI:-please answer  want to learn GUI programming in python  , how should i proceed. Michael Torrie <torriem@gmail.com> - 2013-12-17 11:13 -0700
        Re: GUI:-please answer  want to learn GUI programming in python  , how should i proceed. Wolfgang Keller <feliphil@gmx.net> - 2013-12-19 16:10 +0100
          Re: GUI:-please answer  want to learn GUI programming in python  , how should i proceed. Ned Batchelder <ned@nedbatchelder.com> - 2013-12-19 10:22 -0500
  Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Dan Stromberg <drsalists@gmail.com> - 2013-12-23 11:24 -0800

csiph-web