Controlling Pc From Server?

2005-02-27 Thread andrea_gavana
Hello NG, I am trying to find some information about the possibility to control two (or more) clients (PCs) via a Python application running on a main server. Ideally, this application should be able to monitor (almost in real time) the "activity" of these clients (which applications are l

Controlling Pc From Server?

2005-02-27 Thread andrea_gavana
Hello Kartic & NG, Thank you for your prompt answer. In effect, I'm trying to work on a NT network of 6 PC (plus the server). Sorry to not have been clearer. Ideally, I'm trying to monitor the Internet activity of each client (PC) on this network (but I'm not a boss trying to control my emply

Integer From A Float List?!?

2005-03-04 Thread andrea_gavana
Hello NG, I was wondering if there is a way to obtain, from a list of floats, a list of integers without loops. Probably is a basic question, but I can't find an answer... I have had my eyes blinded by Matlab for years, but now that I discovered Python+wxPython there seems to be no limit on wh

Integer From A Float List?!?

2005-03-05 Thread andrea_gavana
Hello NG, probably because I still have Python 2.3.4, these are the results I'm getting: C:\Python23\Lib>python timeit.py -s "floats = map(float, range(1000))" "ints = m ap(int, floats)" 1000 loops, best of 3: 398 usec per loop C:\Python23\Lib>python timeit.py -s "floats = map(float, range(

Integer From A Float List?!?

2005-03-05 Thread andrea_gavana
Hello NG, sorry to bother you again with this question... I never used the "timeit" function, and I would like to ask you if the call I am doing is correct: C:\Python23\Lib>python timeit.py -n 1000 -s "from Numeric import ones" -s "floa ts=ones((1000,1),'f')" -s "ints = floats.astype(int)" 1

About Databases...

2005-03-11 Thread andrea_gavana
Hello NG, I am still quite a newbie with Python (I intensely use wxPython, anyway). I would like to know what are, in your opinions, the best/faster databases that I could use in Python (and, of course, I should be able to "link" everything with a wxPython GUI)? Specifically, I work on Reservo

Overloaded Constructors?!?

2005-03-20 Thread andrea_gavana
Hello NG, I am trying to port a useful class from wxWidgets (C++) to a pure Python/wxPython implementation. In the C++ source code, a unique class is initialized with 2 different methods (???). This is what it seems to me. I have this declarations: class wxFoldWindowItem { private: wxWi

Overloaded Constructors?!?

2005-03-20 Thread andrea_gavana
Hello Kent, thank you a lot for your answer. I was starting to think that my question was a little bit strange to obtain an answer... >This is a strange design. My first reaction is, why do you want to do that? Maybe you >should split the class in two? You are right. The problem is that this

How To Do It Faster?!?

2005-03-31 Thread andrea_gavana
Hello max & NG, >I don't quite understand what your program is doing. The user=a[18::20] >looks really fragile/specific to a directory to me. I corrected it to user=a[18::5][:-2], it was my mistake. However, that command is NOT specific to a particular directory. You can try to whatever directory

How To Do It Faster?!?

2005-04-01 Thread andrea_gavana
Hello Jeremy & NG, >* Poke around in the Windows API for a function that does what you want, >and hope it can do it faster due to being in the kernel. I could try it, but I think I have to explain a little bit more my problem. >If you post more information about how you are using this data, I ca

How To Do It Faster?!?

2005-04-01 Thread andrea_gavana
Hello Jeremy & NG, >Yes, clearer, though I still don't know what you're *doing* with that data :-) Every user of thsi big directory works on big studies regarding oil fields. Knowing the amount of data (and number of files) we have to deal with (produced by simulators, visualization tools, and so

How To Do It Faster?!?

2005-04-02 Thread andrea_gavana
Hello Simo & NG, >Correct me if I'm wrong but since it _seems_ that the listing doesn't >need to be up-to-date each minute/hour as the users will be looking >primarily for old/unused files, why not have a daily cronjob on the >Unix server to produce an appropriate file list on e.g. the root >direc

Add System Path?!?

2005-04-05 Thread andrea_gavana
Hello NG, I have a GUI (written in wxPython) that calls some external exe files. Some of them requires that I add to the PATH variable 1 directory. Basically, the exe are located in: /MyApp/Solvers/FirstExe /MyApp/Solvers/SecondExe And so on, while the dll needed by these exe are located in:

Add System Path?!?

2005-04-05 Thread andrea_gavana
Hello NG, sorry, I forgot to mention that I am on Windows... 2000 or XP, I don't think there will be any difference. Thank you! Andrea. -- http://mail.python.org/mailman/listinfo/python-list

Registering File Extension?!?

2005-04-08 Thread andrea_gavana
Hello NG, probably this question has been asked before, but I am unable to find an answer... I have a big application (written in Python + a GUI in wxPython) which allows the user to save its work in a file with an extension .glb. Does anyone know if is there a way (on Windows, but also on oth

"The C++ part of the .. Has been deleted, wsTaskBarIcon

2005-04-12 Thread andrea_gavana
Hello Alex, first of all, I would suggest you to upgrade wxPython to 2.5.5.1. There is no particular reason to stick with 2.4, whatever someone else is thinkink/saying. Secondly, I strongly suggest you to abandon the syntax: from wxPython.wx import * And to use: import wx This will help y

Re: Webbrowser On Windows

2005-05-01 Thread andrea_gavana
>It seems to me that there is no way to create a new instance of Internet >Explorer (if there are already some IE windows opened). >Does anyone know a possible solution? Or a workaround (without using >startfile, maybe?) that will force IE to create a new instance? Should I suppose no solution exi