Re: What am I supposed to do with an egg?!

2006-12-20 Thread F. GEIGER
[EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] Type sudo easy_install myeggfile.egg. Sorry for not being clear. I did exec easy_install - no errors so far. But the egg was still there. I'd expected, that it was converted into .py-files somehow, which could be imported by my

Re: Writing an OPC client with Python ?

2006-03-04 Thread F. GEIGER
About a year ago I dev'ed a host app in Python (2.3 at that time) to control a KUKA KR16 robot. Comm was over OPC. The OPC 2.0 server was inst'ed on the KRC2. What I was needed to do, was to install the appropriate (i.e. delivere together w/ the server) client software and to take Mark Hammonds

Re: [Python for .NET] Any plans for supporting CLR2.0?

2006-01-22 Thread F. GEIGER
Terry Reedy wrote: F. GEIGER [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I'm on .NET/CLR2.0 and would like to use some stuff from w/i Python. The Python for .NET file name suggests that CLR1.1 is needed. Is that right? Any known plans to change this? Most responders here

[Python for .NET] Any plans for supporting CLR2.0?

2006-01-21 Thread F. GEIGER
I'm on .NET/CLR2.0 and would like to use some stuff from w/i Python. The Python for .NET file name suggests that CLR1.1 is needed. Is that right? Any known plans to change this? Kind regards Franz GEIGER -- http://mail.python.org/mailman/listinfo/python-list

Re: [OT] How can I change Debian's default Python version?

2006-01-04 Thread F. GEIGER
Diez B. Roggisch wrote: Franz GEIGER wrote: When I call the Python interpreter, the Python 2.4.1 version is called, because I installed it weeks ago from source by myself. That means the symlink /usr/bin/python points to 2.4. Fine. Now, when I install Python packages using the convenient

Re: [OT] How can I change Debian's default Python version?

2006-01-04 Thread F. GEIGER
Ganesan Rajagopal wrote: Franz GEIGER [EMAIL PROTECTED] writes: Now, when I install Python packages using the convenient Synaptic Package Manager, everything goes into the 2.3-directory-tree. How can I change that? That's because synaptic installs packages compiled for the default debian

Re: nanothreads: Want to use them from within wxPython app

2005-12-13 Thread F. GEIGER
[EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] F. GEIGER wrote: I've def'ed a handler for EVT_IDLE in the app's main frame. There I'd like to call the nanothreads' __iter__ method, somehow. When I copy the __iter__ method into a, say, runOnce() method and call the next

Re: tachometer diagram

2005-11-02 Thread F. GEIGER
Could it be http://xoomer.virgilio.it/infinity77/eng/freeware.html#speedmeter you are looking for? HTH Franz GEIGER Andreas Kaiser [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] Hello, I'am searching for a python solution for display a tachometer diagram. I prefer a

Re: [PythonWin] how to stop execution in interactive window?

2005-07-08 Thread F. GEIGER
Right-click on the Pythonwin icon in the tray and select Break into running code. HTH Franz GEIGER [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] Hi All, (sorry for my bad english) I wrote a __tiny__ and __stupid__ recursive script directly into pythonwin interactive

Re: Threading questions

2005-05-28 Thread F. GEIGER
Just an idea: You could have n data collector threads, that all put their results into a queue connected to 1 db thread, that stores the results into the db. Cheers Franz GEIGER Antal Rutz [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] Hi, All! I'm new to threading. I have

[pysqlite 2.0.2] UnicodeDecodeError: 'utf8' codec can't decode bytes in position 44-45: invalid data

2005-05-27 Thread F. GEIGER
A fetchall() call causes the above error. There must be some non-utf8 chars in the table in question and - indeed - there very likely are: The table contains pathnames of files on the harddisk of a German speaking PC. What I have already done to try to overcome this is: - Inserted # coding:

[pysqlite] Equivalent for SHOW TABLES?

2005-05-27 Thread F. GEIGER
For now, the names of the tables, the app knows of, are added into an internal list, when the app is started. Then, when queries fail, the app knoes that it has to create them. It would be nice somehow to be able to ask the database what tables it contains. Is anyone doing this that way? How do

Re: [pysqlite] How do I use pysqlite in a multi-threading env.?

2005-05-21 Thread F. GEIGER
Gerhard Haering [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] I've completely rewritten the db handling stuff, which formerly did too much behind the scenes (explicit is better than implicit...). Now everything looks much better. No unexpected errors and - most important -

[pysqlite] How do I use pysqlite in a multi-threading env.?

2005-05-20 Thread F. GEIGER
In my wxPython-app a part of it gathers data, when a button is pressed, and stores it into a db. The GUI part should display the stuff being stored in the db. When both parts work on the same connection, I get SQL statements in progress errors. Seems ok to me, you can't do that. So, next step:

Re: pysqlite2.dbapi2.ProgrammingError: Incorrect number of bindingssupplied. The current statement uses 0, and there are -1 supplied.

2005-05-18 Thread F. GEIGER
Thank you Gerhard, Gerhard Häring [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] F. GEIGER wrote: Arrgh, sorry for that post! self._dbc.execute(q, data) where data is None, works with MySQL. For SQLite I have to write if data is not None

[pysqlite] pysqlite2.dbapi2.OperationalError: cannot commit transaction - SQL statements in progress

2005-05-18 Thread F. GEIGER
I've troubles to let my app take off using pysqlite. What I wonder most for now is that pysqlite2.dbapi2.OperationalError: cannot commit transaction - SQL statements in progress when I do this: t = time.time() n = len(self) while len(self): del self[0]

pysqlite2.dbapi2.ProgrammingError: Incorrect number of bindings supplied. The current statement uses 0, and there are -1 supplied.

2005-05-17 Thread F. GEIGER
Im on Python 2.3.4, using pysqlite 2.0.0 (final). When I try to execute self._dbc.execute(q, data) where q is 'select count(*) from Difflets ' and date is None I get the following exception: pysqlite2.dbapi2.ProgrammingError: Incorrect number of bindings supplied. The current statement uses

Re: pysqlite2.dbapi2.ProgrammingError: Incorrect number of bindings supplied. The current statement uses 0, and there are -1 supplied.

2005-05-17 Thread F. GEIGER
Arrgh, sorry for that post! self._dbc.execute(q, data) where data is None, works with MySQL. For SQLite I have to write if data is not None: self._dbc.execute(q, data) else: self._dbc.execute(q) Sorry again, Franz GEIGER F. GEIGER [EMAIL PROTECTED

Re: wxTimer problem

2005-05-14 Thread F. GEIGER
As Jp asked already: indepenedent from what? I do such things all the time in a wx-App that controls a 6-axes robot. For example, there I have a LED-Widget for displaying the actual pos. and orient. of the tool. In a wxTimer handler I read OPC variables, whose values are displayed in the

[OT] Graphic editor within an MFC app. I have a wxPython prototype, that...

2005-04-24 Thread F. GEIGER
I have built a wxPython prototype of an app, that lets me place rectangles o a wxPanel, move them and change their size. How the rects are added and placed has to follow certain rules. The final goal is to merge this graphical editor into a MFC app. Converting a standalone wxPython app into a

Re: Event Handeling Between Two wxPanles in A wxNotebook

2005-03-20 Thread F. GEIGER
My DataPool then is a singleton, well, actually, a Borg. See Alex Martelli's recipe for that. If you use new style classes, then you have to look for Singleton in the cookbook. HTH Franz GEIGER MyHaz [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] so you run data pool as like a

Re: [question] Event Handeling Between Two wxPanles in A wxNotebook

2005-03-19 Thread F. GEIGER
That's the Visual Basic way to do it. I prefer it this way: Controls work on models. If a control has to store a value it does so by calling MyDataPool.storeMyValue(self.GetValue()). When the NotebookPage is changed, the new page tells all controls to update themeselves:

Re: Python's idiom for function overloads

2005-02-01 Thread F. GEIGER
Since Python doesn't have static typing, how is the same result as traditional function overloads results in acheived? The more you program in Python, the less you are missing it. As Philippe already said, use objects that support the protocol or decide what to do with it after having

Re: boa constructor mysql

2005-01-29 Thread F. GEIGER
Look at the wx demos. Another idea: Use a virtual list control. In the OnGetItemText() you could do the appropriate SQL query. Workedpretty well for me. HTH Franz GEIGER Michele [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] I've search a lot to found how visualize a mysql

Re: java 5 could like python?

2005-01-12 Thread F. GEIGER
vegetax [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] I was a java developer one year ago ,before i moved to python i realy liked it at the beggining, but i got very disapointed lately since my previus two python proyects where relatively big,and python didnt feel well

Re: GUI with sophisticated Table support

2004-12-30 Thread F. GEIGER
Torsten Mohr [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] Hi, i want to write an application where i need a Table to display some values. The table should display a list of objects, so to say, a column for each attribute of the object. I'd also like the user to be able

Re: GUI with sophisticated Table support

2004-12-30 Thread F. GEIGER
Torsten Mohr [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] Hi, Do a group-google search for *tkinter table*. That shows up quite a few hits. thanks for that hint, but nearly every hit shows the Table of contents for Tkinter, which is not what i search for. Do a *group*

Re: Tkinter vs wxPython

2004-12-28 Thread F. GEIGER
Esmail Bonakdarian [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] Hi I have found ALL of the posts useful, thank you so much. Please keep them coming! I am learning a lot. I will probably play a bit with Tkinter and wxPython and see how each feels, just as Peter Hansen

[Parsing] How do I process loops with PLY?

2004-12-26 Thread F. GEIGER
I'm rather new to high level parsing with lex/yacc (and realy impressed so far). I'd like to parse *and execute* files like this: A=12 B=23 G X=A Y=B Z=34 # Move to X, Y, Z G Z=0 etc. No problems so far. But when loops enter the game, things seem to become more difficult: A=12 B=23 C=45 D=56