ini files and plugins
Hi, I've made a basic LaTeX file editor in wxPython, but now I wanted to add it some features : 1 - create a sort of ini file where I can put the user configuration that will load itself on the application startup ; 2 - a simple plugin system with python files ( maybe to add new langages, etc.) ; I'm looking for simple articles, modules or code snippets on these subjects; thanks, 6TooL9 -- http://mail.python.org/mailman/listinfo/python-list
Re: ini files and plugins
"tool69" wrote: > 1 - create a sort of ini file where I can put the user configuration > that will load itself on the application startup ; http://docs.python.org/lib/module-ConfigParser.html ? > 2 - a simple plugin system with python files ( maybe to add new > langages, etc.) ; http://effbot.org/zone/import-string.htm ? -- http://mail.python.org/mailman/listinfo/python-list
Re: ini files and plugins
Fredrik Lundh a écrit : > "tool69" wrote: > >> 1 - create a sort of ini file where I can put the user configuration >> that will load itself on the application startup ; > > http://docs.python.org/lib/module-ConfigParser.html ? > >> 2 - a simple plugin system with python files ( maybe to add new >> langages, etc.) ; > > http://effbot.org/zone/import-string.htm ? > > > > > Thanks Fredrik, I'll take a look. -- http://mail.python.org/mailman/listinfo/python-list
Re: ini files and plugins
On 11/16/06, tool69 <[EMAIL PROTECTED]> wrote: > Hi, > I've made a basic LaTeX file editor in wxPython, but now I wanted to add > it some features : > > 1 - create a sort of ini file where I can put the user configuration > that will load itself on the application startup ; wxPython includes a configuration management system, it's a bit more powerful and flexible than just using ConfigParser. See the wx.Config classes (I believe theres some code in the demo as well) > 2 - a simple plugin system with python files ( maybe to add new > langages, etc.) ; > > I'm looking for simple articles, modules or code snippets on these > subjects; > thanks, > 6TooL9 > -- > http://mail.python.org/mailman/listinfo/python-list > -- http://mail.python.org/mailman/listinfo/python-list
Re: ini files and plugins
tool69 <[EMAIL PROTECTED]> wrote: >I've made a basic LaTeX file editor in wxPython, but now I wanted to add >it some features : >1 - create a sort of ini file where I can put the user configuration >that will load itself on the application startup ; wx.Config? (If it absolutely has to be a .ini file on Windows, not the registry, you can force that if you want.) -- \S -- [EMAIL PROTECTED] -- http://www.chaos.org.uk/~sion/ ___ | "Frankly I have no feelings towards penguins one way or the other" \X/ |-- Arthur C. Clarke her nu becomeþ se bera eadward ofdun hlæddre heafdes bæce bump bump bump -- http://mail.python.org/mailman/listinfo/python-list