Re: [Tutor] Configuration File, Tkinter, IntVars--Manufacturing Variables

2009-03-04 Thread Alan Gauld
Wayne Watson sierra_mtnv...@sbcglobal.net wrote There's another way? Sure, just create normal Entry widgets and capture the input string and convert/assign it as you would a string captured from raw_input() in a console. No magic required. Its slightly more code but I find the auto

Re: [Tutor] Code documentation

2009-03-04 Thread Alan Gauld
Carlos Daniel Ruvalcaba Valenzuela clsdan...@gmail.com wrote which approach should I take on documentation (API docs) for a python library I have been working on, there is currently code docstrings, docstrings are the minimum since they show up on help() docstrings with some markup

Re: [Tutor] Code documentation

2009-03-04 Thread Lie Ryan
Alan Gauld wrote: In your experience which way is the best or what advantages/disadvantages do you see (experienced) with each approach that you are familiar. Fancy markup is a wasted luxury so far as I am concerned. Not to mention that using non-docstring documentation breaks help(), and

Re: [Tutor] What is this [] construction?

2009-03-04 Thread Kent Johnson
On Wed, Mar 4, 2009 at 2:56 AM, Alan Gauld alan.ga...@btinternet.com wrote: In Python v3 list comprehensions and generator expressions have been merged in that putting a GE inside [] has the same effect as a LC. In practice this makes little or no difference to the programmer its just how

Re: [Tutor] Code documentation

2009-03-04 Thread Kent Johnson
On Wed, Mar 4, 2009 at 3:06 AM, Alan Gauld alan.ga...@btinternet.com wrote: Carlos Daniel Ruvalcaba Valenzuela clsdan...@gmail.com wrote which approach should I take on documentation (API docs) for a python library I have been working on, there is currently code docstrings, docstrings are

Re: [Tutor] Configuration File, Tkinter, IntVars--Manufacturing Variables

2009-03-04 Thread Wayne Watson
Title: Signature.html No error messages. Just a clean finish. Alan Gauld wrote: "Wayne Watson" sierra_mtnv...@sbcglobal.net wrote One starts it by double clicking on the py file. And just to be clear, it exits OK when you run it that way? I would expect so since that's the

Re: [Tutor] Configuration File, Tkinter, IntVars--Manufacturing Variables

2009-03-04 Thread Wayne Watson
Title: Signature.html I have yet to really use Tkinter to put together any widgets, so I'm not sure what normal is. Do you have an example, or could you construct an example to replace the one in the 80 line program? My plan is to get this config interface working, and later to worry about

Re: [Tutor] What is this [] construction?

2009-03-04 Thread Alan Gauld
Kent Johnson ken...@tds.net wrote In Python v3 list comprehensions and generator expressions have been merged in that putting a GE inside [] has the same effect as a LC. I think you mean this (from http://docs.python.org/3.0/whatsnew/3.0.html): Yeah, that's what I was thinking about but

Re: [Tutor] Configuration File, Tkinter, IntVars--Manufacturing Variables

2009-03-04 Thread Alan Gauld
Wayne Watson sierra_mtnv...@sbcglobal.net wrote I'm not sure what normal is. Do you have an example, Is this what you have in mind http://effbot.org/tkinterbook/entry.htm? =start from Tkinter import * master = Tk() e = Entry(master) e.pack() e.focus_set() def callback():

Re: [Tutor] wxPython vs PyQt

2009-03-04 Thread Alan Gauld
Neven Gorsic neven.gor...@gmail.com wrote I read also that none of them are even near as good as Delphi or VB. Is it really so? I had a look around various GUII building tools for wxPython but none of them were near Delphi/VB standard. I've never used pyQT or even vanilla Qt so the idea of

Re: [Tutor] What is this [] construction?

2009-03-04 Thread Marc Tompkins
On Tue, Mar 3, 2009 at 11:56 PM, Alan Gauld alan.ga...@btinternet.comwrote: In Python v3 list comprehensions and generator expressions have been merged in that putting a GE inside [] has the same effect as a LC. In practice this makes little or no difference to the programmer its just how

Re: [Tutor] Convert XML codes to normal text?

2009-03-04 Thread Sander Sweers
2009/3/4 Eric Dorsey dors...@gmail.com: d = feedparser.parse('http://snipt.net/dorseye/feed') x=0 for i in d['entries']:     print d['entries'][x].title     print d['entries'][x].summary     print     x+=1 Output Explode / Implode List gt;gt;gt; V = list(V) snip I know, for

Re: [Tutor] wxPython vs PyQt

2009-03-04 Thread Chris Fuller
There is a not-free GUI builder, wxDesigner, that isn't too bad (except for costing money). http://www.roebling.de The GLADE GUI builder for Gtk is very nice, however. http://www.pygtk.org/ For windows: http://gladewin32.sourceforge.net/ Cheers ___

Re: [Tutor] wxPython vs PyQt

2009-03-04 Thread Kent Johnson
On Wed, Mar 4, 2009 at 9:06 AM, Neven Goršić neven.gor...@gmail.com wrote: Hi! I am about to begin to learn GUI programming with Python. What are pros and cons for PyQT and wxPython? I read that PyQT has PyQT Designer which makes GUI programming easier. Is it owned and supported by Nokia?

Re: [Tutor] Configuration File, Tkinter, IntVars--Manufacturing Variables

2009-03-04 Thread Kent Johnson
On Tue, Mar 3, 2009 at 2:54 PM, Wayne Watson sierra_mtnv...@sbcglobal.net wrote: I see my post of yesterday, Maintaining the Same Variable Type--Tkinter, went over like a lead balloon. :-) (Note though the Myth Busters TV series successfully built and flew a lead balloon.) Let's see if I can

Re: [Tutor] wxPython vs PyQt

2009-03-04 Thread johnf
On Wednesday 04 March 2009 04:56:37 pm Alan Gauld wrote: Kent Johnson ken...@tds.net wrote I've heard good things about Dabo, never tried it myself though. http://dabodev.com/ I looked at Dabo but decided not to try it since it was yet another framework. Although it's based on wxPython