[python-win32] Re: hex(-1) at python 2.4

2005-04-22 Thread Michael Spencer
Wang Charles wrote: under phython hex(-1) '-0x1' but i want a 2.3 style output like hex(-1) '0x' what should i do? The following: >>> def hex(x): ... return "0x%x" % ((x < 0) * 0x1 + x) should return the same output on 2.3/2.4 If you are concerned about non-32 bit systems, th

[python-win32] scripting Rhino via win32com

2005-04-22 Thread Jelle Feringa / EZCT Architecture & Design Research
Hi all, I'm trying to script Rhino -a 3d CAD nurbs modeler- via python. Which looks to be very cool, if it wasn't for some gnarly problem I'm running into: from jf.interface import RhinoScript #interface to rhino by makepy import os, sys, win32com.client Rhino = win32com.client.Dispatch("Rhino3.

[python-win32] how to browse another computer's folder tree structure ?

2005-04-22 Thread Michael Li
Hi, Is there an easy way to browse folders at another computer ? Basically it's the same as C:\Python24\Lib\site-packages\win32comext\shell\demos\browse_for_folder.py just show another computer's folder tree structure, not local computer's. I am in computer A and I want to see the folders on comput

[python-win32] dynamic Word strangeness

2005-04-22 Thread Robin Becker
...I've started getting problems with dynamic dispatch eg PythonWin 2.4.1 (#65, Mar 30 2005, 09:13:57) [MSC v.1310 32 bit (Intel)] on win32. Portions Copyright 1994-2004 Mark Hammond ([EMAIL PROTECTED]) - see 'Help/About PythonWin' for further copyright information. >>> import win32com.client.dyna

[python-win32] Window system tray menu problem - text overlapping icons on XP

2005-04-22 Thread Simon Brunning
I've got a bit of a problem that I'm sure one of you chaps can help me with. Basically, I've been playing with Mark's demo code in win32gui_taskbar.py and win32gui_menu.py, trying to build a general purpose system tray menu module. It's working fairly well - see http://www.brunningonline.net/simon/

[python-win32] hex(-1) at python 2.4

2005-04-22 Thread Wang Charles
under phython >>> hex(-1) '-0x1' but i want a 2.3 style output like >>> hex(-1) '0x' what should i do? -- http://mail.ustc.edu.cn/~better/gmail3.png ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/