Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #61889 > unrolled thread
| Started by | Jai <jaiprakashsingh213@gmail.com> |
|---|---|
| First post | 2013-12-14 04:12 -0800 |
| Last post | 2013-12-23 11:24 -0800 |
| Articles | 20 on this page of 106 — 27 participants |
Back to article view | Back to comp.lang.python
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
Page 1 of 6 [1] 2 3 4 5 6 Next page →
| From | Jai <jaiprakashsingh213@gmail.com> |
|---|---|
| Date | 2013-12-14 04:12 -0800 |
| Subject | GUI:-please answer want to learn GUI programming in python , how should i proceed. |
| Message-ID | <9f5d28ce-504d-40db-baa2-ff3699ab05c7@googlegroups.com> |
GUI:-want to learn GUI programming in python , how should i proceed. There are lots of book here so I am confuse which book i should refer so that i don't waste time . please answer
[toc] | [next] | [standalone]
| From | Chris Angelico <rosuav@gmail.com> |
|---|---|
| Date | 2013-12-14 23:25 +1100 |
| Subject | Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. |
| Message-ID | <mailman.4111.1387023943.18130.python-list@python.org> |
| In reply to | #61889 |
On Sat, Dec 14, 2013 at 11:12 PM, Jai <jaiprakashsingh213@gmail.com> wrote: > GUI:-want to learn GUI programming in python , how should i proceed. > > There are lots of book here so I am confuse which book i should refer so that i don't waste time . please answer There are many ways to build a GUI with Python. Some of the more popular toolkits are Tk (tkinter), wxWidgets (wxpython), and GTK. Explore those and see which one you like; I personally quite like GTK, and the others have their fans too. There are GUI builders for each of the above (I think; definitely wx and GTK do), or you can build everything directly in code (my preferred style). Play around with it and see what you like! As a side point, though: You're using Google Groups to post, which means your posts look messy, because GG doesn't follow internet standards. Short of getting into Google and fixing Groups, the best solution is to avoid using it; you can either use some other newsreader (several here swear by Mozilla Thunderbird), or subscribe to the email list, which carries all the same content: https://mail.python.org/mailman/listinfo/python-list Either way will spare you and us the hassles of malformed posts. ChrisA
[toc] | [prev] | [next] | [standalone]
| From | Jai <jaiprakashsingh213@gmail.com> |
|---|---|
| Date | 2013-12-14 04:46 -0800 |
| Subject | Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. |
| Message-ID | <ea93733b-6f77-421a-9805-8a7c918db0be@googlegroups.com> |
| In reply to | #61890 |
thank you sir
[toc] | [prev] | [next] | [standalone]
| From | rurpy@yahoo.com |
|---|---|
| Date | 2013-12-14 09:42 -0800 |
| Subject | Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. |
| Message-ID | <04972c71-d4ee-4c16-a9f2-4e556f7d8e05@googlegroups.com> |
| In reply to | #61890 |
On 12/14/2013 05:25 AM, Chris Angelico wrote:
> On Sat, Dec 14, 2013 at 11:12 PM, Jai <jaiprakashsingh213@gmail.com> wrote:
>> GUI:-want to learn GUI programming in python , how should i proceed.
>>
>> There are lots of book here so I am confuse which book i should refer so that i don't waste time . please answer
>
> There are many ways to build a GUI with Python. Some of the more
> popular toolkits are Tk (tkinter), wxWidgets (wxpython), and GTK.
> Explore those and see which one you like; I personally quite like GTK,
> and the others have their fans too. There are GUI builders for each of
> the above (I think; definitely wx and GTK do), or you can build
> everything directly in code (my preferred style). Play around with it
> and see what you like!
For learning, tkinter is probably the easiest because it comes
with Python and you don't need to install anything else. The
best way to get started with it is to search for tutorials and
examples on web. Searching for "python tkinter" on Amazon shows
a few books but I don't know anything about them.
wxPython currently runs only with Python2, not Python3. There
is a drag-and-drop form designer available for it but it is a
commercial product that costs money. It also comes with a
useable (once you get used to it) form builder tool that works
by graphically manipulating a text tree of widgets.
The other big, widely-used GUI toolkit is PyQt. It runs on
both Python2 and Python3. There is another version of it
called PySide which is API compatible with PyQt but has
different licensing terms. PyQt comes with a very good
drag-and-drop form designer.
I have played a little with both wxPython an PyQt and found
learning to use them from the web difficult because of their
size and complexity. But both of them have pretty good books
about them available:
Rapid GUI Programming with Python and Qt (Summerfield)
http://www.amazon.com/Programming-Python-Prentice-Software-Development/dp/0132354187
WxPython in Action (Dunn and Rapin)
http://www.amazon.com/Wxpython-Action-Noel-Rappin/dp/1932394621/
> As a side point, though: You're using Google Groups to post, which
> means your posts look messy, because GG doesn't follow internet
> standards. Short of getting into Google and fixing Groups, the best
> solution is to avoid using it; you can either use some other
> newsreader (several here swear by Mozilla Thunderbird), or subscribe
> to the email list, which carries all the same content:
>
> https://mail.python.org/mailman/listinfo/python-list
>
> Either way will spare you and us the hassles of malformed posts.
Chris and some other people here dislike Google Groups and
try to imply that everyone here feels the same way. Not true.
I and many other people here use Google Groups and have been
doing so for years so if Google Groups works for you, please
feel free to continue using it.
If you want to reduce the noise level from people like Chris
you might want to take a look at:
https://wiki.python.org/moin/GoogleGroupsPython
[toc] | [prev] | [next] | [standalone]
| From | Mark Lawrence <breamoreboy@yahoo.co.uk> |
|---|---|
| Date | 2013-12-14 18:11 +0000 |
| Subject | Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. |
| Message-ID | <mailman.4119.1387044744.18130.python-list@python.org> |
| In reply to | #61905 |
On 14/12/2013 17:42, rurpy@yahoo.com wrote: > On 12/14/2013 05:25 AM, Chris Angelico wrote: > > wxPython currently runs only with Python2, not Python3. There > is a drag-and-drop form designer available for it but it is a > commercial product that costs money. It also comes with a > useable (once you get used to it) form builder tool that works > by graphically manipulating a text tree of widgets. Development versions which support Python 3 are available here http://wxpython.org/Phoenix/snapshot-builds/ Unfortunately they've not been updated since 3rd December. I've asked why and been told that Robin Dunn is simply too busy. There's Open Source for you :) > >> As a side point, though: You're using Google Groups to post, which >> means your posts look messy, because GG doesn't follow internet >> standards. Short of getting into Google and fixing Groups, the best >> solution is to avoid using it; you can either use some other >> newsreader (several here swear by Mozilla Thunderbird), or subscribe >> to the email list, which carries all the same content: >> >> https://mail.python.org/mailman/listinfo/python-list >> >> Either way will spare you and us the hassles of malformed posts. > > Chris and some other people here dislike Google Groups and > try to imply that everyone here feels the same way. Not true. > > I and many other people here use Google Groups and have been > doing so for years so if Google Groups works for you, please > feel free to continue using it. > > If you want to reduce the noise level from people like Chris > you might want to take a look at: > > https://wiki.python.org/moin/GoogleGroupsPython > Of course I dislike Google Groups, users keep sending double spaced crap which I don't want to see. There is no "noise level" from people like Chris, which obviously includes me. There is a constant stream of polite requests not to send double spaced crap which we do not wish to see. There are at least two solutions to this, follow the instructions in the link repeated above for the umpteenth time or use a different tool. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence
[toc] | [prev] | [next] | [standalone]
| From | Michael Torrie <torriem@gmail.com> |
|---|---|
| Date | 2013-12-14 13:10 -0700 |
| Subject | Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. |
| Message-ID | <mailman.4125.1387051852.18130.python-list@python.org> |
| In reply to | #61905 |
On 12/14/2013 10:42 AM, rurpy@yahoo.com wrote: > The other big, widely-used GUI toolkit is PyQt. It runs on > both Python2 and Python3. There is another version of it > called PySide which is API compatible with PyQt but has > different licensing terms. PyQt comes with a very good > drag-and-drop form designer. Just to be clear, PyQt does not provide the drag and drop form designer. That comes from QtDesigner or QtCreator, which is part of Qt itself and you can use it to design GUIs for use in any language that Qt has bindings for, not just Python. PyQt probably does come with a code generator to convert the xml GUI definitions into Python, but these days such use is discouraged in favor of using Qt itself to load the XML file at runtime and build the objects on the fly for you. It's way more flexible and there's no code generation needed. (Apple has done this for years with Cocoa with their nib files in the bundle.) > I have played a little with both wxPython an PyQt and found > learning to use them from the web difficult because of their > size and complexity. But both of them have pretty good books > about them available: Yes there are concepts you'll have to wrap your brain around such as how to do proper widget layout. Things aren't placed in a fixed way usually. They are allowed to grow and shrink with the window size. And you will have to grasp how events work. Of all the APIs I've used, I think GTK in Python is the cleanest (PyGTK or PyObject). But if I was targeting Windows or Mac I'd stick with PySides/PyQt.
[toc] | [prev] | [next] | [standalone]
| From | Wolfgang Keller <feliphil@gmx.net> |
|---|---|
| Date | 2013-12-14 18:05 +0100 |
| Message-ID | <20131214180549.59e9831a6faf098b754ea00a@gmx.net> |
| In reply to | #61889 |
> GUI:-want to learn GUI programming in python , how should i proceed. > > There are lots of book here so I am confuse which book i should > refer so that i don't waste time . It depends on what you want to do with the GUI, since there are many different GUI frameworks for Python. E.g. If you absolutely need to run your applications on MacOS X, then PyGTK is probably not the best choice. WingIDE, a popular IDE, has been recently ported to PyQt, apparently for this reason. Besides, PyGTK itself seems to be "shelved", PyGObject now (since GTK 3) seems to be the "canonical" way to implement GTK GUIs in Python. Tkinter is a bit "special" to use since it's not just a library, but uses some kind of RPC. It seems that "look and feel" have been greatly improved lately. wxWidgets (wxPython) recently (since 2.9/3.0) got support for Cocoa, it's native on the Mac. It's quite slim, but seems to be a "moving target" API-wise, since the developers are not shy from breaking compatibility. Is it compatible with Python 3 yet? PyQt looks native everywhere, but it might be a bit overweight, depending on what you want to do and where your applications need to run. And then there's the licensing issue, since PyQt, unlike Qt itself, is not available under LGPL afaik. For closed-source commercial applications, there seems to be a way to use a commercially licensed PyQt (much less expensive than Qt itself) together with LGPL-Qt however. Pyside would be a LGPL alternative to PyQt, but it doesn't seem to be as up-to-date as PyQt. And then, there are even more frameworks, such as Pygame, PyGUI, etc.... And each of these frameworks has dedicated mailinglists. Personally I found it difficult to use any of the "wrapped" C++ frameworks without being able to understand the documentation made for C++. :-( Sincerely, Wolfgang
[toc] | [prev] | [next] | [standalone]
| From | Mark Lawrence <breamoreboy@yahoo.co.uk> |
|---|---|
| Date | 2013-12-14 17:54 +0000 |
| Message-ID | <mailman.4117.1387043692.18130.python-list@python.org> |
| In reply to | #61904 |
On 14/12/2013 17:05, Wolfgang Keller wrote: > > wxWidgets (wxPython) recently (since 2.9/3.0) got support for Cocoa, > it's native on the Mac. It's quite slim, but seems to be a "moving > target" API-wise, since the developers are not shy from breaking > compatibility. Is it compatible with Python 3 yet? > This is one of the goals of the so called Phoenix project http://wiki.wxpython.org/ProjectPhoenix -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence
[toc] | [prev] | [next] | [standalone]
| From | Michael Torrie <torriem@gmail.com> |
|---|---|
| Date | 2013-12-14 13:01 -0700 |
| Message-ID | <mailman.4123.1387051351.18130.python-list@python.org> |
| In reply to | #61904 |
On 12/14/2013 10:05 AM, Wolfgang Keller wrote: > Tkinter is a bit "special" to use since it's not just a library, but > uses some kind of RPC. It seems that "look and feel" have been greatly > improved lately. I know Tkinter originated with the Tcl/Tk language. With Tkinter in Python is it still using Tcl/Tk under the hood? IE embeds the Tcl language interpreter into Python's interpreter? If so I've always found it a bit strange that the de facto GUI library that's shipped with Python ships an entirely different language with it under the hood.
[toc] | [prev] | [next] | [standalone]
| From | Steven D'Aprano <steve+comp.lang.python@pearwood.info> |
|---|---|
| Date | 2013-12-14 22:59 +0000 |
| Message-ID | <52ace2c0$0$29992$c3e8da3$5496439d@news.astraweb.com> |
| In reply to | #61913 |
On Sat, 14 Dec 2013 13:01:58 -0700, Michael Torrie wrote: > On 12/14/2013 10:05 AM, Wolfgang Keller wrote: >> Tkinter is a bit "special" to use since it's not just a library, but >> uses some kind of RPC. It seems that "look and feel" have been greatly >> improved lately. > > I know Tkinter originated with the Tcl/Tk language. With Tkinter in > Python is it still using Tcl/Tk under the hood? IE embeds the Tcl > language interpreter into Python's interpreter? If so I've always found > it a bit strange that the de facto GUI library that's shipped with > Python ships an entirely different language with it under the hood. That's just the "Interpreter" design pattern, except the Domain Specific Language is already written for you :-) (I'm half-serious here.) But more seriously, 100% seriously in fact, I think that you'll find that *every* GUI framework for Python ships with an entirely different language under the hood, usually C. Even if the top level of the framework is written in Python, the underlying graphics routines used for drawing controls and windows will surely not be. Given that the actual maintenance of the GUI itself is unlikely to be a bottleneck in any real application, I don't think it is a significant problem efficiency-wise that Python tkinter relies on an intermediate framework written in Tcl. -- Steven
[toc] | [prev] | [next] | [standalone]
| From | Grant Edwards <invalid@invalid.invalid> |
|---|---|
| Date | 2013-12-15 14:53 +0000 |
| Message-ID | <l8kfpp$4ai$1@reader1.panix.com> |
| In reply to | #61921 |
On 2013-12-14, Steven D'Aprano <steve+comp.lang.python@pearwood.info> wrote: > But more seriously, 100% seriously in fact, I think that you'll find that > *every* GUI framework for Python ships with an entirely different > language under the hood, usually C. Name one GUI framework that ships with a C implementation. > Even if the top level of the framework is written in Python, the > underlying graphics routines used for drawing controls and windows > will surely not be. You seem to be equating "was compiled from" with "includes an implemenation of". Do you say that CPython "ships with C"? -- Grant
[toc] | [prev] | [next] | [standalone]
| From | Steven D'Aprano <steve+comp.lang.python@pearwood.info> |
|---|---|
| Date | 2013-12-15 17:01 +0000 |
| Message-ID | <52ade081$0$29976$c3e8da3$5496439d@news.astraweb.com> |
| In reply to | #61945 |
On Sun, 15 Dec 2013 14:53:45 +0000, Grant Edwards wrote: > On 2013-12-14, Steven D'Aprano <steve+comp.lang.python@pearwood.info> > wrote: > >> But more seriously, 100% seriously in fact, I think that you'll find >> that *every* GUI framework for Python ships with an entirely different >> language under the hood, usually C. > > Name one GUI framework that ships with a C implementation. Er, all of them? I daresay that Tcl itself eventually calls graphics routines written in C. There's not that many languages that commonly get used for low-level graphics routines, but C is one of them. If you mean, ships with a C *compiler*, or even a C interpreter, then no, probably not. But it wouldn't surprise me if some of those GUI frameworks are powerful enough to count as mini-languages in their own right. >> Even if the top level of the framework is written in Python, the >> underlying graphics routines used for drawing controls and windows will >> surely not be. > > You seem to be equating "was compiled from" with "includes an > implemenation of". Do you say that CPython "ships with C"? Well, when you take my comments out of their context, that does seem to be a totally stupid thing to say. But in context, it's only *mostly* stupid, and mostly stupid means a little bit sensible *wink* The context was a complaint, or at least expression of surprise, that Python use Tcl for a GUI, this being contrasted with (paraphrasing the legions of people who have expressed surprise about this in the past) "some hypothetical GUI written in Python". But in practice, it won't be written in Python, it will be likely written in C or some other low-level language with some interface to Python. The main difference between this hypothetical "Python GUI" and Tcl is that Tcl is a Turing-complete interpreter which lives in it's own process. [Aside: I wonder how many other GUI toolkits are Turing complete?] As I stated earlier, this is just the Interpreter design pattern, with the minor complication that the domain specific language happens to be an existing language, Tcl, with an interpreter that usually runs in a separate process, instead of some mini-language running inside Python. So I don't see anything surprising about Tkinter (or for that matter, Ruby and it's bindings to Tcl/Tk). Maybe it's because I'm used to Unix/ Linux systems, where it is common for tools that execute in one interpreter to call other tools which execute in a different interpreter. E.g. a shell script which calls a Ruby script which calls some command which happens to be written in Python. Python, after all, was originally invented to be a glue language, and I don't really see anything weird about Python delegating work to Tcl any more than I see anything strange about IronPython delegating work to the .Net runtime. -- Steven
[toc] | [prev] | [next] | [standalone]
| From | Chris Angelico <rosuav@gmail.com> |
|---|---|
| Date | 2013-12-16 09:06 +1100 |
| Subject | Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. |
| Message-ID | <mailman.4152.1387145178.18130.python-list@python.org> |
| In reply to | #61955 |
On Mon, Dec 16, 2013 at 4:01 AM, Steven D'Aprano <steve+comp.lang.python@pearwood.info> wrote: > As I stated earlier, this is just the Interpreter design pattern, with > the minor complication that the domain specific language happens to be an > existing language, Tcl, with an interpreter that usually runs in a > separate process, instead of some mini-language running inside Python. Yeah, but there's a difference between passing your GUI incantations on to a library function (written in C but now just part of a binary library) and feeding them to a completely different language interpreter. When I write something with PyGTK, I can't, even in theory, give it arbitrary C code to execute. From what I understand here, that *is* true of Tcl, which means that the Python download contains a Python interpreter and a Tcl interpreter. I'm not saying that's a bad thing to do, but it is calculated to provoke remark. ChrisA
[toc] | [prev] | [next] | [standalone]
| From | Kevin Walzer <kw@codebykevin.com> |
|---|---|
| Date | 2013-12-16 09:55 -0500 |
| Subject | Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. |
| Message-ID | <l8n48p$fmn$1@dont-email.me> |
| In reply to | #61967 |
On 12/15/13, 5:06 PM, Chris Angelico wrote: > Yeah, but there's a difference between passing your GUI incantations > on to a library function (written in C but now just part of a binary > library) and feeding them to a completely different language > interpreter. When I write something with PyGTK, I can't, even in > theory, give it arbitrary C code to execute. From what I understand > here, that *is* true of Tcl, which means that the Python download > contains a Python interpreter and a Tcl interpreter. I'm not saying > that's a bad thing to do, but it is calculated to provoke remark. Yes, a Tkinter app has both a Python interpreter and an underlying Tcl interpreter. Let's be clear about that. The technical reason for this is that, during Python's early development, Tk was the simplest, most powerful and OSS-friendly GUI toolkit out there (compared to, let's say, Motif). Its reliance on Tcl was a plus because Tcl's C API is exceptionally clean and easy to embed/call from other C libraries (that was Tcl's original main focus, embedding in C). Embedding the Tcl interpreter remains a sound decision today. It makes it trivial to keep Tkinter updated in sync with Tk updates, since the Tcl interpreter does most of the heavy lifting. The recent effort to wrap Tk's new themed widgets is a good one: nearly all of the work was done at the Python level. Compare this approach to Perl's original one, which stripped out Tcl and implemented Tk integration entirely in C. Any updates require heavy lifting in C and, in fact, Perl/Tk has not kept up with Tk's main line of development (it does not run natively on the Mac, for instance). Calling through Tkinter to Tcl also provides some other conveniences. If you're writing a Tkinter app and want to access some platform-specific functionality that requires C calls, that may require a library extension written against Tcl/Tk's C API (i.e. the Mac's NSServices API--that can't be accessed using ctypes because it hooks into the window server). Fortunately, Tk is very easy to extend in C--much simpler than extending wxWidgets or Qt. Finally, Tcl is itself a fully-featured, general programming language that is a peer to Python both generationally and in terms of its capabilities; the main way it lags is in the size of its development community. In other words, you are not handing the ball off to a 90-pound weakling if you need to call into Tcl from Python via Tkinter. ;-) --Kevin -- Kevin Walzer Code by Kevin/Mobile Code by Kevin http://www.codebykevin.com http://www.wtmobilesoftware.com
[toc] | [prev] | [next] | [standalone]
| From | Chris Angelico <rosuav@gmail.com> |
|---|---|
| Date | 2013-12-17 02:20 +1100 |
| Subject | Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. |
| Message-ID | <mailman.4219.1387207214.18130.python-list@python.org> |
| In reply to | #62067 |
On Tue, Dec 17, 2013 at 1:55 AM, Kevin Walzer <kw@codebykevin.com> wrote: > Finally, Tcl is itself a fully-featured, general programming language that > is a peer to Python both generationally and in terms of its capabilities; > the main way it lags is in the size of its development community. In other > words, you are not handing the ball off to a 90-pound weakling if you need > to call into Tcl from Python via Tkinter. ;-) Having made a tweak to gitk at one point, I have to say Tcl is definitely inferior to Python. I'd much rather work with Python itself. :) ChrisA
[toc] | [prev] | [next] | [standalone]
| From | Kevin Walzer <kw@codebykevin.com> |
|---|---|
| Date | 2013-12-16 10:32 -0500 |
| Subject | Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. |
| Message-ID | <l8n6dv$tg5$1@dont-email.me> |
| In reply to | #62070 |
On 12/16/13, 10:20 AM, Chris Angelico wrote: > Having made a tweak to gitk at one point, I have to say Tcl is > definitely inferior to Python. Without starting a flame war, can you elaborate? I'm curious about your perspective. (I studied PSL--Python as a Second Language--so develop in it with a slight accent. I'm a native Tcl developer, for better or worse.) --Kevin -- Kevin Walzer Code by Kevin/Mobile Code by Kevin http://www.codebykevin.com http://www.wtmobilesoftware.com
[toc] | [prev] | [next] | [standalone]
| From | Chris Angelico <rosuav@gmail.com> |
|---|---|
| Date | 2013-12-17 03:10 +1100 |
| Subject | Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. |
| Message-ID | <mailman.4221.1387210260.18130.python-list@python.org> |
| In reply to | #62071 |
On Tue, Dec 17, 2013 at 2:32 AM, Kevin Walzer <kw@codebykevin.com> wrote:
> On 12/16/13, 10:20 AM, Chris Angelico wrote:
>>
>> Having made a tweak to gitk at one point, I have to say Tcl is
>> definitely inferior to Python.
>
>
> Without starting a flame war, can you elaborate? I'm curious about your
> perspective.
>
> (I studied PSL--Python as a Second Language--so develop in it with a slight
> accent. I'm a native Tcl developer, for better or worse.)
Here's the Tcl procedure that I tweaked. This is from gitk; I find the
word diff not all that useful, but a character diff at times is very
useful. I haven't found a way to configure the word diff regex through
gitk's options, so I tweaked it in the source code.
proc getblobdiffs {ids} {
global blobdifffd diffids env
global diffinhdr treediffs
global diffcontext
global ignorespace
global worddiff
global limitdiffs vfilelimit curview
global diffencoding targetline diffnparents
global git_version currdiffsubmod
set textconv {}
if {[package vcompare $git_version "1.6.1"] >= 0} {
set textconv "--textconv"
}
set submodule {}
if {[package vcompare $git_version "1.6.6"] >= 0} {
set submodule "--submodule"
}
set cmd [diffcmd $ids "-p $textconv $submodule -C --cc
--no-commit-id -U$diffcontext"]
if {$ignorespace} {
append cmd " -w"
}
if {$worddiff ne [mc "Line diff"]} {
append cmd " --word-diff=porcelain --word-diff-regex=."
}
if {$limitdiffs && $vfilelimit($curview) ne {}} {
set cmd [concat $cmd -- $vfilelimit($curview)]
}
if {[catch {set bdf [open $cmd r]} err]} {
error_popup [mc "Error getting diffs: %s" $err]
return
}
set targetline {}
set diffnparents 0
set diffinhdr 0
set diffencoding [get_path_encoding {}]
fconfigure $bdf -blocking 0 -encoding binary -eofchar {}
set blobdifffd($ids) $bdf
set currdiffsubmod ""
filerun $bdf [list getblobdiffline $bdf $diffids]
}
First off, everything's done with commands, rather than assignment
("set diffinhdr 0"), which is very shell-style and not very
programming-style. Can live with that, though even shells can use
equals signs for simplicity. Similarly, the shell style of adorning
variable usage feels messy. There are string literals, some of which
contain interpolated variables; there are dollar-sign adorned
variables; and then there are other words. What are the other words?
Are they implicit strings (as they would be in, say, bash)? I've never
really liked that style. Anyway. Can get past that.
Secondly, what does this do?
if {$worddiff ne [mc "Line diff"]}
I *think* it means 'if $worddiff is not equal to "Line diff" (this
code is executed for the options "Markup words" and "Color words", but
what's the mc do? How am I supposed to figure out what it does? Where
do I begin to look?
This is where, IMO, Python tends to be a lot clearer. It's easy to see
what's an object and what's a method on it, and every bare word is
either a local name or a standard built-in name. I'm sure Tcl's a
great language, but I'd rather not have to drop out of Python into it
if I can help it. :)
ChrisA
[toc] | [prev] | [next] | [standalone]
| From | Grant Edwards <invalid@invalid.invalid> |
|---|---|
| Date | 2013-12-16 16:46 +0000 |
| Subject | Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. |
| Message-ID | <l8nap9$6hf$1@reader1.panix.com> |
| In reply to | #62074 |
On 2013-12-16, Chris Angelico <rosuav@gmail.com> wrote:
> On Tue, Dec 17, 2013 at 2:32 AM, Kevin Walzer <kw@codebykevin.com> wrote:
>> On 12/16/13, 10:20 AM, Chris Angelico wrote:
>>>
>>> Having made a tweak to gitk at one point, I have to say Tcl is
>>> definitely inferior to Python.
>>
>>
>> Without starting a flame war, can you elaborate? I'm curious about your
>> perspective.
I wrote a few Tcl apps once many, many years ago. After attempting to
write something more than a few hundred lines long, I gave up and
swore off Tcl completely. I switched to Scheme, and later to Python.
The things I found infuriating about Tcl:
* The "everything is a string" view of the world is severly
limiting if you're not just processing strings.
* The quoting syntax and semantics appears to have been invented by
somebody at the CIA as a way to torture programmers into doing...
something... I don't know what.
* Tcl doesn't seem to have any sort of coherent design or philosophy
behind it but rather consists of a bunch of hacks piled on top of
a simple and limited shell-like string processing language. It
sort of feels like PHP in that regard.
When I finally gave up fighting with Tcl's quoting semantics half way
through a medium/small application and switched to Scheme/Tk, I had my
app written from scratch in a fraction of the time it took to get
about half way done in Tcl, and with about 1/3 the lines of code.
Python probably would have cut both hours and lines by half again
compared to Scheme.
--
Grant Edwards grant.b.edwards Yow! I'd like some JUNK
at FOOD ... and then I want to
gmail.com be ALONE --
[toc] | [prev] | [next] | [standalone]
| From | Chris Angelico <rosuav@gmail.com> |
|---|---|
| Date | 2013-12-17 03:52 +1100 |
| Subject | Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. |
| Message-ID | <mailman.4223.1387212762.18130.python-list@python.org> |
| In reply to | #62077 |
On Tue, Dec 17, 2013 at 3:46 AM, Grant Edwards <invalid@invalid.invalid> wrote: > * The "everything is a string" view of the world is severly > limiting if you're not just processing strings. I wasn't sure if that was the case, from what I was seeing. Are there any aggregate types at all? ChrisA
[toc] | [prev] | [next] | [standalone]
| From | Grant Edwards <invalid@invalid.invalid> |
|---|---|
| Date | 2013-12-16 17:04 +0000 |
| Subject | Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. |
| Message-ID | <l8nbq1$6f3$1@reader1.panix.com> |
| In reply to | #62078 |
On 2013-12-16, Chris Angelico <rosuav@gmail.com> wrote:
> On Tue, Dec 17, 2013 at 3:46 AM, Grant Edwards <invalid@invalid.invalid> wrote:
>> * The "everything is a string" view of the world is severly
>> limiting if you're not just processing strings.
>
> I wasn't sure if that was the case, from what I was seeing. Are there
> any aggregate types at all?
There are arrays with string keys (similar to Python dictionaries).
--
Grant Edwards grant.b.edwards Yow! hubub, hubub, HUBUB,
at hubub, hubub, hubub, HUBUB,
gmail.com hubub, hubub, hubub.
[toc] | [prev] | [next] | [standalone]
Page 1 of 6 [1] 2 3 4 5 6 Next page →
Back to top | Article view | comp.lang.python
csiph-web