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


Groups > comp.lang.python > #60154

Re: Total Python Newbie needs geting started info.

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder1.xlned.com!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.012
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'tutorial': 0.03; 'subject:Python': 0.06; 'interpreter.': 0.07; 'ide': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'python': 0.11; 'gui': 0.12; 'language.': 0.14; 'buttons,': 0.16; 'handlers': 0.16; 'handlers.': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:started': 0.16; 'think.': 0.16; 'wrote:': 0.18; 'code.': 0.18; 'bit': 0.19; '(where': 0.19; 'not,': 0.20; 'help.': 0.21; 'example': 0.22; 'shell': 0.22; 'load': 0.23; 'header:User-Agent:1': 0.23; 'builder': 0.24; 'environment': 0.24; 'this:': 0.26; 'defined': 0.27; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'installed': 0.27; 'am,': 0.29; 'properties': 0.29; 'along': 0.30; "i'm": 0.30; "skip:' 10": 0.31; 'ones.': 0.31; 'styles': 0.31; 'use?': 0.31; 'view.': 0.31; 'file': 0.32; 'class': 0.32; 'interface': 0.32; 'run': 0.32; 'url:python': 0.33; 'skip:b 30': 0.33; 'style': 0.33; 'actual': 0.34; 'something': 0.35; 'objects': 0.35; 'but': 0.35; 'there': 0.35; 'really': 0.36; 'christopher': 0.36; 'from:addr:live.com': 0.36; 'thanks': 0.36; 'url:org': 0.36; 'too': 0.37; 'button': 0.38; 'to:addr:python-list': 0.38; 'little': 0.38; 'visual': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'how': 0.40; 'easy': 0.60; 'signal': 0.60; 'free': 0.61; 'gone': 0.61; 'url:3': 0.61; 'save': 0.62; 'name': 0.63; 'grab': 0.64; 'different': 0.65; 'great': 0.65; 'here': 0.66; 'approaches': 0.68; 'started.': 0.68; 'containing': 0.69; 'integrated': 0.69; 'wish': 0.70; 'everything.': 0.84; 'boxes,': 0.91; 'good,': 0.91; 'graphical': 0.91; 'subject:needs': 0.93
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Christopher Welborn <cjwelborn@live.com>
Subject Re: Total Python Newbie needs geting started info.
Date Wed, 20 Nov 2013 22:14:16 -0600
References <2bdb369a-abcd-46b4-910a-c7819a958129@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host 68-113-89-245.dhcp.leds.al.charter.com
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0
In-Reply-To <2bdb369a-abcd-46b4-910a-c7819a958129@googlegroups.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
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.3000.1385007278.18130.python-list@python.org> (permalink)
Lines 53
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1385007278 news.xs4all.nl 15976 [2001:888:2000:d::a6]:38427
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:60154

Show key headers only | View raw


On 11/20/2013 10:03 AM, Ev J wrote:
> I am learning Python and wish to develop GUI applications to run on Windows.
> I have installed the Visual Studio integrated shell (Ver. 12.0.21005.1 REL) IDE and the Python 3.3 interpreter. I have gone through some of the 3.3 tutorial available at http://docs.python.org/3.3/tutorial/.
>
> The tutorial is all about using the interactive interrupter and writing little console programs to learn the language.
>
> Before I go too far down this road, I need to know if I can/should use this environment to develop GUI applications.  Is there graphical support for this - for example I can I just insert/move/set properties of buttons, combo boxes, etc. using an interface like the one in VBA?
>
> If not, what is the best free IDE for me to use?
> What is the best tutorial for the IDE?
>
> I am a bit overwhelmed as to how to get started.
>
> Thanks for any help.
>
>
>

+1 for GTK. It takes a minute to get used to coming from a VB background 
(VB spoils people with its easy GUI builder). You write your own signal 
handlers with GTK (and other GUI libs also), instead of having it 
'auto-created' along with the button when its dropped. You also learn a 
lot more. Qt and Wx look good, I just don't have any experience with 
them. Glade for GTK is a very good GUI builder, but again, coming from 
VB it's not what you think. It only generates a glade file (XML-like 
file containing the layout for the GUI), but it's up to you to fill in 
the actual code. The process is something like this:

Build a gui with glade and save it.

Load .glade file in your python code. (builder.add_from_file(myfile))
(where builder is a Gtk.Builder())

Grab objects from it. (self.button1 = builder.get_object('Button1'))
(where Button1 is the name of a GtkButton in the glade file.)

Write signal handlers. (def button1_clicked_cb(self, btn):)
(signal names can be defined in glade)

Connect signals (builder.connect_signals(self))
(where self is a class containing the signal handlers)


I'm no expert at it, but I really like using it. There are different 
approaches and styles for using Gtk, so don't think my 'process' is set 
in stone. Someone else here may have a different view. The great thing 
about Gtk is the amount of control you have over everything. Large 
projects may require a different style than small ones.
-- 

- Christopher Welborn <cjwelborn@live.com>
   http://welbornprod.com

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


Thread

Total Python Newbie needs geting started info. Ev J <shorepointln@gmail.com> - 2013-11-20 08:03 -0800
  Re: Total Python Newbie needs geting started info. Chris Angelico <rosuav@gmail.com> - 2013-11-21 03:14 +1100
    Re: Total Python Newbie needs geting started info. Alister <alister.ware@ntlworld.com> - 2013-11-20 16:37 +0000
  Re: Total Python Newbie needs geting started info. Rod Person <rodperson@rodperson.com> - 2013-11-20 11:36 -0500
  Re: Total Python Newbie needs geting started info. Christopher Welborn <cjwelborn@live.com> - 2013-11-20 22:14 -0600

csiph-web