wxPython: TextCtrl delayed update when using TE_RICH(2)

2007-02-03 Thread citronelu
I made a small wxPython app that retrieves web data; for visual logging I use a TextCtrl widget, and stdout is redirected to it, something like this: class RedirectOutput: def __init__(self, objectTxtCtrl): self.out = objectTxtCtrl def write(self, string):

Re: wxPython: panel not fully painted

2007-01-28 Thread citronelu
Thank you. -- http://mail.python.org/mailman/listinfo/python-list

wxPython: panel not fully painted

2007-01-24 Thread citronelu
Hi, I'm new to wxpython, and the following code is my first serious attempt: #~ start code import wx class MyPanel(wx.Panel): def __init__(self, parent, id): wx.Panel.__init__(self, parent, id) self.parent = parent button = wx.Button(self, -1, Refresh)

Execute binary code

2007-01-08 Thread citronelu
Is it possible to execute a binary string stored within a python script as executable code ? The script is run under Windows, and the binary code (a full executable file) is stored in a variable in the script. I know I can use os.system() or os.popen() to run an external file, but these

Re: Execute binary code

2007-01-08 Thread citronelu
Larry Bates wrote: What you are asking is a virus/trojan like program. There's no reason you shouldn't be able to write the code to TEMP directory and execute it. -Larry No, it is not about a trojan, but I guess it's pointless to try to convince you otherwise. It's not about being able to

Re: Fwd: Execute binary code

2007-01-08 Thread citronelu
Chris Mellon wrote: Writing to a temp file will be at least 3 times as easy and twice as reliable as any other method you come up with. I'm not disputing that, but I want to keep a piece of code (a parser for Oracle binary dumps, that I didn't wrote) out of foreign hands, as much as possible.

Re: Execute binary code

2007-01-08 Thread citronelu
Bjoern Schliessmann wrote: But you could technically achieve this with standard python too (just write python source and spawn a python process executing it). The code I try to execute is Windows specific and it is binary, not python. Furthermore, it is stored in a variable within the parent

Timeout for regular expression

2005-11-22 Thread citronelu
Hi All, Is there a way to set a timeout interval when executing with a re.search ? Sometimes (reason being maybe a bad pattern), the search takes forever and beyond... -- http://mail.python.org/mailman/listinfo/python-list