Re: XML GUI
py schrieb: > how about wxPython? I am interested in something that will look native > on various operating systems (win, mac, *nix). > > any good tutorial on using wxPython with XML? > look at http://wiki.wxpython.org/index.cgi/UsingXmlResources -- http://mail.python.org/mailman/listinfo/python-list
Re: How do (not) I distribute my Python progz?
Hi Steven, > For many purposes, you can just distribute the .pyc compiled byte-code. > That will discourage the casual user from reading the source code, but > of course a serious programmer will be able to disassemble the .pyc code > very easily. very easily ? I tried it with my own code a year or two ago, and had some problems (sorry don't remember all steps, but I think there was a tool called disassemble ?). As I don't use a repository at the moment, I would need it sometimes to disassemble older versions of my exe'd code. Could you please give some hints, how I can get on ? Thanks in advance Jürgen -- http://mail.python.org/mailman/listinfo/python-list
Re: disassemble, was(How do (not) I distribute my Python progz?)
Hi Steven, >What makes you think I'm a serious programmer? *wink* Ok, it's not a 'serious' investigation, but maybe it could be, that you (sometimes) quote something usefull ;-) > Python's byte-code is not exactly as easy to understand as native Python, > but it is still understandable. And I wonder, is there a program which > will try to generate Python code from the output of the disassembler? look at: http://www.crazy-compilers.com/decompyle/ it's only a online service. But if it works, it would be nice to have such a tool as standalone programm. Thanks a lot. regards, Jürgen -- http://mail.python.org/mailman/listinfo/python-list
Re: disassemble, was(How do (not) I distribute my Python progz?)
Hi Paul, I had looked to the same link and downloaded the package. Maybe I'll give it a try at the christmas holidays - hope so ;-) Thanks Jürgen -- http://mail.python.org/mailman/listinfo/python-list
Re: disassemble, was(How do (not) I distribute my Python progz?)
gene tani schrieb: > http://users.cs.cf.ac.uk/J.P.Giddy/python/decompiler/decompiler.html Thanks for the links. Regards, Jürgen -- http://mail.python.org/mailman/listinfo/python-list
numpy error
Hello, this is my first try to get wxmpl-1.2.8 running. Therefor I installed: python 2.5 matplotlib-0.87.6.win32-py2.5.exe numpy-1.0rc3.win32-py2.5.exe on WinXP SP2 The result is a version mismatch (see below). Numpy version 102 seems to be numpy-1.0b5 which is not downloadable anymore. Any hints ? Thanks in advance. Jürgen traceback: from pylab import * RuntimeError: module compiled against version 102 of C-API but this version of numpy is 109 The import of the numpy version of the nxutils module, _nsnxutils, failed. This is is either because numpy was unavailable when matplotlib was compiled, because a dependency of _nsnxutils could not be satisfied, or because the build flag for this module was turned off in setup.py. If it appears that _nsnxutils was not built, make sure you have a working copy of numpy and then re-install matplotlib. Otherwise, the following traceback gives more details: Traceback (most recent call last): File "", line 1, in File "C:\Python25\Lib\site-packages\pylab.py", line 1, in from matplotlib.pylab import * File "C:\Python25\Lib\site-packages\matplotlib\pylab.py", line 199, in import mlab #so I can override hist, psd, etc... File "C:\Python25\Lib\site-packages\matplotlib\mlab.py", line 64, in import nxutils File "C:\Python25\Lib\site-packages\matplotlib\nxutils.py", line 17, in from matplotlib._ns_nxutils import * ImportError: numpy.core.multiarray failed to import -- http://mail.python.org/mailman/listinfo/python-list
Re: numpy error
> Or install the numpy-1.0rc2 binary which is now again available on > sourceforge. Hello Travis, thanks for your help. Going back to the 1.0rc2 release was successful. Ok, I had also to copy wxmsw26uh_vc.dll to my path and get around wx.PrindData.SetPrinterCommand, but that's because I run wxpython 2.7.1.2. Since it's really fresh it'll take a little time to adapt in all third parties. Jürgen -- http://mail.python.org/mailman/listinfo/python-list
fetching text from the screen
Hello list, I'm thinking about a python script which fetch some text from the screen independent of what application provides the text on the screen. In this regard it should be similar to the babylon software: www.babylon.com Here my thoughts: 1) getting the mouse position 2) calculate a adequate rectangle around the mouse position 3) fetch the screen content in this rectangle 4) use a OCR library to get the text out of 3) 5) do something usefull with it. Has someone experiences with this task ? Is this a good roadmap or could someone think of a better way? Which OCR library shoud I use ? Found tesseract-ocr (linux, windows) and simpleOCR (bad, only windows (activeX). Thanks in advance for your replays. Jürgen -- http://mail.python.org/mailman/listinfo/python-list
Re: fetching text from the screen
Gabriel Genellina schrieb: > En Mon, 18 Jun 2007 09:13:16 -0300, Juergen Kareta <[EMAIL PROTECTED]> > escribió: > >> I'm thinking about a python script which fetch some text from the screen >> independent of what application provides the text on the screen. In this >> regard it should be similar to the babylon software: www.babylon.com >> >> >> Here my thoughts: >> >> 1) getting the mouse position >> 2) calculate a adequate rectangle around the mouse position >> 3) fetch the screen content in this rectangle >> 4) use a OCR library to get the text out of 3) >> 5) do something usefull with it. > > > On Windows, I'd try first using WindowFromPoint to get a window handle, > and the sending it a WM_GETTEXT message. This should work for all > windowed controls that contain text of some kind. I'd use your generic > approach when this doesn't work. > Hi Gabriel, thanks for your interesting suggestions. I'll try that to figure out, how it works in different situations. Jürgen -- http://mail.python.org/mailman/listinfo/python-list
Re: python libpcap equivalent
Gabriel schrieb: Hello I need to write a software router [yes, software equivalent to a hardware box that is routing packets .)]. It's a school work.. Question is: is possible write this kind of application in python? and if it's, what module should i use? I tried search for some libpcap equivalent in python and found pylibpcap, but can't find documentation and tutorial. Hello Gabriel, you might look into scapy: http://www.secdev.org/projects/scapy/ which easily allows you to fetch, manipulate and send network packages. Jürgen -- http://mail.python.org/mailman/listinfo/python-list
Re: py3k s***s
Diez B. Roggisch schrieb: >> And I have been benefiting from Python in general, so far. Thanks, >> community. >> >> But now... I'll probably stop posting here for now, & I may stop other >> things too. >> >> Just my 2c. > > You know what I was just wondering about? All these C-written > cross-platform libraries (which Python users benefit from, most probably > including evven you) that run on different unixes & windows, which are a > much greater diversity to handle than the not-even-yet-settled > differences between Py3K & 2.x. How the heck do they do that? > > Oh, and these dreaded 64 bit processors, possibly with multi-cores, > which need changes in code as well, to be utilized to their power. > > But then, these guys most probably don't whine about diversity and > constant change, and cry out useless threats to people who probably > can't care less. > > Fare well, if you must. But getting mad over something which impact you > can't even judge right now is childish. Nothing else. > > Diez 1+ -- http://mail.python.org/mailman/listinfo/python-list