Re: How can I make a program automatically run once per day?

2011-07-27 Thread baloan
On Jul 14, 7:00 pm, monkeys paw wrote: > On 7/9/2011 10:01 PM, John Salerno wrote: > > > Thanks everyone! I probably should have said something like "Python, > > if possible and efficient, otherwise any other method" ! :) > > > I'll look into the Task Scheduler. Thanks again! > > You could use the

Re: Threading with Socket Server

2011-03-24 Thread baloan
If you don't mind to use the coroutine library eventlet you can implement a single threaded solution. See example below. For your use case you need to change controller to load the shelve every eventlet.sleep(n) seconds. Regards, Andreas # eventlet single thread demo """ prc_publish.eventlet Pr

Re: which "dictionary with attribute-style access"?

2009-10-22 Thread baloan
On Oct 22, 6:34 am, "Gabriel Genellina" wrote: > > class AttrDict(dict): > >      """A dict whose items can also be accessed as member variables.""" > >      def __init__(self, *args, **kwargs): > >          dict.__init__(self, *args, **kwargs) > >          self.__dict__ = self > > >      def copy

Re: remote control firefox with python

2010-11-30 Thread baloan
On Nov 28, 4:22 pm, News123 wrote: > Hi, > > I wondered whether there is a simpe way to > 'remote' control fire fox with python. > > With remote controlling I mean: > - enter a url in the title bar and click on it > - create a new tab > - enter another url click on it > - save the html document of

Re: Tkinter polling example: file copy with progress bar

2010-12-14 Thread baloan
Unfortunately you use command('cp...') to copy the file instead of Pythons portable library methods. This choice effectively makes your program work on Unix only (not Windows). See http://modcopy.sourceforge.net for a more portable version. Regards, bal...@gmail.com -- http://mail.python.org/mai

Re: matplotlib / backend

2009-08-25 Thread baloan
On Aug 25, 10:12 am, Pierre wrote: > Hello, > > I'm to plot some results but it doesn't work. > I got this error : > > /usr/local/libre_rep/python-2.6.1/RHEL_5__x86_64/lib/python2.6/site- > packages/matplotlib/backends/__init__.py:41: UserWarning: > Your currently selected backend, 'agg' does not