Re: [Tutor] wxPython vs PyQt

2009-03-04 Thread johnf
On Wednesday 04 March 2009 04:56:37 pm Alan Gauld wrote: > "Kent Johnson" 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 they h

Re: [Tutor] wxPython vs PyQt

2009-03-04 Thread Alan Gauld
"Kent Johnson" 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 they have layered their own widgets on top which is what the GUI Builder

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 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 really simplify what

Re: [Tutor] wxPython vs PyQt

2009-03-04 Thread Kent Johnson
On Wed, Mar 4, 2009 at 9:06 AM, Neven Goršić 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? > What about wxPy

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] Convert XML codes to "normal" text?

2009-03-04 Thread Sander Sweers
2009/3/4 Eric Dorsey : > 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 > >>> V = list(V) > I know, for example, that the > c

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

2009-03-04 Thread Marc Tompkins
On Tue, Mar 3, 2009 at 11:56 PM, Alan Gauld 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 > Python handles it beh

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

2009-03-04 Thread Eric Dorsey
Senthil, That worked like a charm, thank you for the help! Now my Snipt's are actually legible :) On Wed, Mar 4, 2009 at 12:01 AM, Senthil Kumaran wrote: > On Wed, Mar 4, 2009 at 11:13 AM, Eric Dorsey wrote: > > I know, for example, that the > code means >, but what I don't know is > > how to

Re: [Tutor] wxPython vs PyQt

2009-03-04 Thread Alan Gauld
"Neven Gorsic" 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 learning yet another G

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

2009-03-04 Thread Alan Gauld
"Wayne Watson" wrote I'm not sure what normal is. Do you have an example, Is this what you have in mind ? =start from Tkinter import * master = Tk() e = Entry(master) e.pack() e.focus_set() def callback(): print e.get() b = Butto

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

2009-03-04 Thread Alan Gauld
"Kent Johnson" 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 my memory p

Re: [Tutor] Shelve: remove dictionary from list

2009-03-04 Thread Timo
Kent Johnson schreef: On Tue, Mar 3, 2009 at 12:18 PM, Timo wrote: Hello all, I'm using the Shelve module to store dictionaries in a list as a value of a key. So: key = [{'keyA' : 1, 'keyB' : 2}, {'key1' : 1, 'key2' : 2}] The problem is I can't remove a dictionary from the list. import

[Tutor] wxPython vs PyQt

2009-03-04 Thread Neven Goršić
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? What about wxPython? Boa Constructor is not developed any more ... Is there any pr

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 con

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" 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 normal way to run a Tkinter

Re: [Tutor] Code documentation

2009-03-04 Thread Kent Johnson
On Wed, Mar 4, 2009 at 3:06 AM, Alan Gauld wrote: > > "Carlos Daniel Ruvalcaba Valenzuela" 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 h

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

2009-03-04 Thread Kent Johnson
On Wed, Mar 4, 2009 at 2:56 AM, Alan Gauld 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 > Python handles it behin

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 us

Re: [Tutor] Code documentation

2009-03-04 Thread Alan Gauld
"Carlos Daniel Ruvalcaba Valenzuela" 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 (epydoc, etc), or extern

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

2009-03-04 Thread Alan Gauld
"Wayne Watson" 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 assignment of values to variab

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

2009-03-04 Thread Alan Gauld
"Wayne Watson" 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 normal way to run a Tkinter program. IDLE is only intended to be a development tool not a runtime program. Nope. I just t