Re: Windows vs Linux [was: p2exe using wine/cxoffice]

2005-10-26 Thread Tim G
Thomas Heller wrote: > FYI, if you don't know this already: You also can resize the console without > going through the properties menu with 'mode con cols=... lines=...'. Good grief! I haven't used "mode con" in years; forgotten it even existed! Thanks for bringing that back, Thomas. TJG -- ht

Re: Windows vs Linux

2005-10-26 Thread Tim G
Bernhard Herzog wrote: > "Tim Golden" <[EMAIL PROTECTED]> writes: > > > But as far as I can tell > > from my experience and from the docs -- and I'm not near a > > Linux box at the mo -- having used ctrl-r to recall line x > > in the history, you can't just down-arrow to recall x+1, x+2 etc. > > O

Re: Problems with threaded Hotkey application

2005-11-23 Thread Tim G
And just to confirm, it does in fact work. If you move the RegisterHotKey line to within the thread's run method, the thread's message loop picks up the hotkey press. -- http://mail.python.org/mailman/listinfo/python-list

Re: Problems with threaded Hotkey application

2005-11-23 Thread Tim G
One obvious point is that, according to: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wceui40/html/cerefWM_HOTKEY.asp the WM_HOTKEY message is posted to the queue *of the thread which registered the hotkey*. I haven't yet tried it myself to see, but in your example the main th

Re: Problem remotely shutting down a windows computer with python

2005-01-04 Thread Tim G
> I have a problem when using the python script found here: > > http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/360649 > > It is a script to remotely shutdown a windows computer. When I use it, > the computer shuts down, but doesn't power off like with a regular > shutdown. It stays on the

Re: Installing IPython on win2k

2005-01-08 Thread Tim G
Dave Merrill wrote: > Hi, I'm new to python, and ipython, but not to programming, having trouble > getting ipython installed on windows 2000, python 233. Any help would be > much appreciated; I'm sure I'm being some basic flavor of dense... First of all, rest assured that it does work (and quite e

Re: COM problem .py versus .exe

2005-06-29 Thread Tim G
Greg Miller wrote: > I tried the code snippet using win32api.GetFileVersionInfo(), what I > get now is the following when running on the executable machine: > > . . . FileFlagsMask => 63 > FileType => 2 > FileVersionMS => 65536 > FileVersionLS => 1 > Signature => -17890115 > FileSubtype => 0 > File

FTP Error: Windows AS/400

2005-09-13 Thread Tim G.
I am trying to use Win Python to ftp files from an AS/400 IFS directory down to my Windows machine. I seem to get stuck when I am trying to send a command to the AS/400 to switch file systems from native to IFS and then to issue a cd to my folder. I get the error below. If anyone has had experie

FTP Windows AS/400

2005-09-13 Thread Tim G.
I am trying to execute a win python script that connects to an AS/400; changes from the native lib to the IFS file system; then, changes to a directory in IFS; gets a file. Any help would be greatly appreciated. I cannot get the script to switch from native to IFS. I get the following error: Tr

Re: simple input that can understand special keys?

2005-02-28 Thread Tim G
Gabriel B. wrote: > i'm writting an application that will use Tinker in a newer future. > Now it's console only. I simply ommit some data on the display, > print() some other and go on. The problem is that i can't test the > actions tiggered by special keys, like Page Up/Down or the F1...12 > > Rig

Re: HELP: Python equivalent of UNIX command "touch"

2005-03-03 Thread Tim G
Since no-one's suggested this yet, I highly recommend UnxUtils: http://unxutils.sourceforge.net/ which includes a touch.exe. Obviously, this doesn't answer your call for a Python version, but if you're happy with touch under Unix, maybe this will work for you. TJG -- http://mail.python.org/mailm

Re: os.path.islink()

2004-12-08 Thread Tim G
You may well be able to do it with the win32file module functions: GetFileAttributesEx or GetFileInformationByHandle It's not my area of expertise, but usually a bit of poking around in msdn.microsoft.com yields some results, as does Googling around for other people (often VB or Delphi-based) who h

Re: HELP Printing with wxPython

2005-05-11 Thread Tim G
> Hello all, I'm trying hard to make possible to print some simple text from > python to the default printer using wxPython, after days of internet > searches I found this page: http://wiki.wxpython.org/index.cgi/Printing but > is impossible to use this script even if I do exactly as said there. I