Re: [Tutor] cannot pickle instancemethod objects

2007-06-18 Thread hok kakada
នៅថ្ងៃ ពុធ 13 មិថុនា 2007 19:09, Kent Johnson បាន​សរសេរ​ថា ៖ > hok kakada wrote: > >> What kind of object is matcher? Does it have any attributes that are > >> functions? (Not methods you defined for the class, but functions or > >> methods that you assign to attribu

[Tutor] cannot pickle instancemethod objects

2007-06-11 Thread hok kakada
Dear everyone, I got a problem while pickling a class object. I have done something as below: pickleFile = open(filename, 'wb') pickle.dump(matcher, pickleFile) pickleFile.close() where matcher is class object and I got the follow errors: Traceback (most recent call last)

[Tutor] How to set value back to .conf file

2007-03-20 Thread hok kakada
Hi all, I just start to use ConfigParser to store the configuration for my application. I surfed the mails related to ConfigParser, however I couldn't found the way of how to set value back to the .conf file. Let say, I have a test.conf file with: [General] userName="da" later on, I wanna add

[Tutor] python2vb.net

2006-10-25 Thread hok kakada
Dear All, A friend of mine is well programming in vb.net and C#. He got a python sourcecode of KhmerConverter tool. He would like to port to either vn.net or C#. Are there any tools to do this? Thanks, da ___ Tutor maillist - Tutor@python.org http:/

Re: [Tutor] save configuration of one application.

2006-10-11 Thread hok kakada
On Wednesday 04 October 2006 11:54, John Fouhy wrote: > On 04/10/06, Luke Paireepinart <[EMAIL PROTECTED]> wrote: > > you can make a config.ini file and use that one module that parses ini > > files. > > I can't remember what it's called. > > configparser I think, but I wouldn't bet my life on it :

[Tutor] save configuration of one application.

2006-10-03 Thread hok kakada
Hi, Can anybody guide me how to write the code for configure one application? For example, I want to set Font and Color for a textbox; later when the application is opened again. the previous font is set. So, which related function are used to form this feature? Thanks, da _