Re: Configuration Files and Tkinter--Possible?

2009-03-04 Thread Gabriel Genellina
En Wed, 04 Mar 2009 13:50:32 -0200, W. eWatson escribió: Gabriel Genellina wrote: En Wed, 04 Mar 2009 12:12:50 -0200, W. eWatson escribió: That's fine, but I think my problem boils down to one question. There seem to be two ways to communicate with a dialog (I mean a collection of widg

Re: Configuration Files and Tkinter--Possible?

2009-03-04 Thread W. eWatson
Gabriel Genellina wrote: En Wed, 04 Mar 2009 12:12:50 -0200, W. eWatson escribió: That's fine, but I think my problem boils down to one question. There seem to be two ways to communicate with a dialog (I mean a collection of widgets assembled in a window that requires the user enter various

Re: Configuration Files and Tkinter--Possible?

2009-03-04 Thread Marc 'BlackJack' Rintsch
On Wed, 04 Mar 2009 06:12:50 -0800, W. eWatson wrote: > That's fine, but I think my problem boils down to one question. There > seem to be two ways to communicate with a dialog (I mean a collection of > widgets assembled in a window that requires the user enter various > parameters, integers, stri

Re: Configuration Files and Tkinter--Possible?

2009-03-04 Thread Gabriel Genellina
En Wed, 04 Mar 2009 12:12:50 -0200, W. eWatson escribió: That's fine, but I think my problem boils down to one question. There seem to be two ways to communicate with a dialog (I mean a collection of widgets assembled in a window that requires the user enter various parameters, integers,

Re: Configuration Files and Tkinter--Possible?

2009-03-04 Thread W. eWatson
Gabriel Genellina wrote: En Wed, 04 Mar 2009 03:13:43 -0200, W. eWatson escribió: I'm converting a Tkinter program (Win XP) that uses widgets that allows the user to change default values of various parameters like start and stop time in hh:mm:ss, time of exposure in seconds, and whether ce

Re: Configuration Files and Tkinter--Possible?

2009-03-04 Thread Gabriel Genellina
En Wed, 04 Mar 2009 03:13:43 -0200, W. eWatson escribió: I'm converting a Tkinter program (Win XP) that uses widgets that allows the user to change default values of various parameters like start and stop time in hh:mm:ss, time of exposure in seconds, and whether certain options should b

Re: Configuration files

2008-06-16 Thread Robert
Does ConfigParser allow writing configuration changes also? "Dennis Lee Bieber" <[EMAIL PROTECTED]> schreef in bericht news:[EMAIL PROTECTED] > On Sat, 14 Jun 2008 21:27:19 +0200, "Robert" <[EMAIL PROTECTED]> > declaimed the following in comp.lang.python: > > > What is the most Pythonic way to ma

Re: Configuration files

2008-06-15 Thread TheSaint
On 04:11, domenica 15 giugno 2008 Daniel Fetchinson wrote: > Check this out: http://www.voidspace.org.uk/python/configobj.html > Let me add: cfgparse, iniparse I've look at all to find a simple solution for my interest, but I realized not a good result. I'm using three of them ConfigParser, cfgpa

Re: Configuration files

2008-06-14 Thread Daniel Fetchinson
> What is the most Pythonic way to maintain a configuration file? > Are there any libraries mimicking registry / ini file writing that many > windows programming languages/environments offer? Check this out: http://www.voidspace.org.uk/python/configobj.html Cheers, Daniel -- Psss, psss, put it d

Re: Configuration Files

2004-12-26 Thread M.E.Farmer
>thanks for the replies, guys! Your welcome, glad I could help. >(Spending time on these newsgroups is giving me more questions that >answers heh ) Thats good as long as it motivates you to learn ;) M.E.Farmer -- http://mail.python.org/mailman/listinfo/python-list

Re: Configuration Files

2004-12-26 Thread flamesrock
thanks for the replies, guys! MEFarmer, that example helps remove a lot of the confusion, thanks! I've looked through the SDL but there are so many different ways to do it, I wasn't which one was hands down best And Mike, I wish they would stick explanations like that in the SDL! Would help make

Re: Configuration Files

2004-12-25 Thread M.E.Farmer
Here are two functions that show how to use ConfigParser. py>def ConfigWrite(key, value, section, cfgpath): ... import ConfigParser, pprint ... parser=ConfigParser.ConfigParser() ... cfg = open(cfgpath,'w') ... parser.add_section(section) ... Pretty = pprint.PrettyPrinter(

Re: Configuration Files

2004-12-25 Thread Mike Meyer
Aaron <[EMAIL PROTECTED]> writes: > Hi, > > I'm interested in creating a large number of configuration files which I > have no experience doing in python. The fields will be static for the most > part. But design changes and I might want to add new fields in the future.. > > My question is - whats

Re: Configuration Files

2004-12-25 Thread M.E.Farmer
Aaron wrote: > Hi, > > I'm interested in creating a large number of configuration files which I > have no experience doing in python. The fields will be static for the most > part. But design changes and I might want to add new fields in the future.. > > My question is - whats the best module for c