Re: do something in time interval

2008-10-06 Thread Petr Jakeš
I am not an expert, but why not to use time.sleep(5)? If you are using wxPython, you may also try wx.Timer, in which you could set its interval. Thanks for your reply. During the 5s period my script has to do some stuff instead of sleeping. Thats why it runs in the loop and once in 5s period

User-defined Exceptions: is self.args OK?

2008-04-17 Thread Petr Jakeš
Hi, I have posted this via google.groups, but I have discovered many of you are filtering such a postings. So this is my second try from the mail client. I am trying to dig through User-defined Exceptions. chapter 8.5 in http://docs.python.org/tut/node10.html I would like to know, if is it OK

Re[2]: unicode mystery/problem

2006-09-22 Thread Petr Jakeš
John, thanks for your extensive answer. Hi, I am using Python 2.4.3 on Fedora Core4 and Eric3 Python IDE . Below mentioned code works fine in the Eric3 environment. While trying to start it from the command line, it returns: Traceback (most recent call last): File pokus_1.py, line 5, in

technique to enter text using a mobile phone keypad (T9 dictionary-based disambiguation)

2006-08-08 Thread Petr Jakeš
I have a standard 12-key mobile phone keypad connected to my Linux machine as a I2C peripheral. I would like to write a code which allows the text entry to the computer using this keypad (something like T9 on the mobile phones) According to the http://www.yorku.ca/mack/uist01.html

Re: Python for Embedded Systems?

2006-07-17 Thread Petr Jakeš
J Is there a Python packaging that is specifically for J embedded systems? ie, very small and configurable so the J user gets to select what modules to install? J For Linux-based embedded systems in particular? J I'm thinking of running it on the Linksys's Linux-based open J source router

Re[2]: Can I do it using python?? about xterm and telnet

2006-07-03 Thread Petr Jakeš
v Thanks, v But I need to to do complicated job in the xterm consoles for servers. what does it mean, complicated job? Can you be more specific, please? v So I need v to open many xterm consoles and I just want to save my time from v telneting...usr/pwd... v Network Ninja wrote: valpa wrote:

Re: I have 100 servers which need a new backup server added to a text file, and then the backup agent restarted.

2006-07-02 Thread Petr Jakeš
g This seems easy but I have been asking tcl and python IRC chat all day g and no one gave an answer. g I have 100 servers which need a new backup server added to a text file, g and then the backup agent restarted. g If I have a list of the servers, all with same root password, and the g

Re[2]: delete first line in a file

2006-06-30 Thread Petr Jakeš
JH this helps me! JH thank you very much! JH greetings, juergen I am happy to see my postings (which I sent by accident to you only, not to the list, see below) helped. But: Its a pity we can not see your solution (your code) here :( It helps to others as well to see, how to solve some

small inaccuracy in the logging module documentation (Python Library Reference)

2006-06-29 Thread Petr Jakeš
Hi, I have found some inaccuracy in the Python Library Reference 6.29.5.4 TimedRotatingFileHandler (http://docs.python.org/lib/node349.html) 1) it is not really obvious from the documentation the when value has to be in the format w0, w1 ... w6 if Type of interval is defined as a week day 2)