need drvmcdb.sys

2005-11-13 Thread james HU
Anybody has this file in ..\system32\drivers\drvmcdb.sys in your computer? please send it to me. You will save my life! thanks a lot!   James Yahoo! FareChase - Search multiple travel sites in one click. -- http://mail.python.org/mailman/listinfo/python-list

911, need drvmcdb.sys desperately

2005-11-12 Thread James Hu
Hi, Sorry to post this message, but I need emergency help, please help me out! I couldn't get drvmcdb.sys from internet, which I accidentally deleted last night, my laptop (XP) couldn't reboot anymore, but I need to keep my data. If anybody can send me this file: which is located in c:\windo

RE: IE Temporary Internet Files & Python

2005-11-10 Thread James Hu
Maybe the reason is ..\Content.IE5\index.dat can't be deleted! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of rtilley Sent: Thursday, November 10, 2005 11:03 AM To: python-list@python.org Subject: Re: IE Temporary Internet Files & Python Laszlo Zsolt N

tiff tags

2005-11-10 Thread James Hu
 Hi,   Is any way to write more tags to tiff file when saved from:   im= Image.fromstring("I", datasize, newbuftemp, 'raw', 'I;16') im.save(“myfile.tif”)   the tag are: 256=(640,) 257=(512,) 258=(16,) 259=(1,) 262=(1,) 273=(110,) 278=(512,) 279=(4, '\x00\x00\n\x00')   But

callback for ctypes

2005-11-01 Thread James Hu
Hi, gurus, I would like to use ctypes to implement callback function for QImage Camera to capture image asynchronously, and I have the c++ code of callback, but I am totally in the dark, the ctypes tutorial is not good enough for me to do that, does someone know where to dig more info for ctypes c

drag/move image from staticBitmap control?

2005-10-28 Thread James Hu
Hi, all gurus,   I have an application to show bitmap image on one wx.staticBitmap control area, I can display part of the image, or the whole image(detail is unclear), But I would like to use mouse to drag/move the image inside thewx.staticBitmap control when only part image on the scre

RE: [python-win32] simulate DoEvents by python/wxpython

2005-10-27 Thread James Hu
Thanks a lot! -Original Message- From: Mark Hammond [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 26, 2005 7:16 PM To: James Hu; Python-win32@python.org; python-list@python.org Subject: RE: [python-win32] simulate DoEvents by python/wxpython Build 205 of win32gui does have

simulate DoEvents by python/wxpython

2005-10-26 Thread James Hu
Hi, all gurus,   I  need to simulate DoEvents in VB by python/wxPython, My application needs to capture live image in a loop until one specific button pressed Multi-thread is also not very good solution, for there are big number of data to exchange between the two threads.   Win32g

RE: [python-win32] findwindow by its class name

2005-10-21 Thread James Hu
Thanks a lot! Yes, GetHandle() can return 'wxWindowClassNR', which is nice, but all wxPython apps return wxWindowClassNR as well, so when I Post Message, it goes to itself. James -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul Moore Sent: Friday, Oc

findwindow by its class name

2005-10-21 Thread James Hu
Hi, For the simple code: from wxPython.wx import * class MyApp(wxApp): def OnInit(self): frame = wxFrame(NULL, -1, "Hello App") frame.Show(true) self.SetTopWindow(frame) return true app = MyApp(0) app.MainLoop() Is there any way to know this windows' class

create user message for wxPython

2005-10-20 Thread James Hu
Hi, There are 2 wxPython application, A and B and need to exchange msg. Sending WM_CLOSE, wxEVT_MOUSEWHEEL to B is OK, and sending user message like 1225 from A to B is also OK. But B didn't catch this message, note, B is running before A sends msg and can receive "WM_CLOSE". Do I have to make

PIL Image can't open png file with "I"?

2005-10-07 Thread James Hu
Hi, I have png file with mode "I", 16 bit, And I tried to open it with im=Image.open("output.png"), im.show() I got all white image. Don't why? Can Image only support 'RGB' or 'RGBA' png files? Thanks James -- http://mail.python.org/mailman/listinfo/python-list

ctypes questions

2005-10-06 Thread James Hu
Convert unsigned long imageSize; Frame.pBuffer=new unsigned char[ imageSize ] To buffer = (c_ubyte * imageSize)()# create array Frame.pBuffer = addressof(buffer) Frame.pBuffer = (c_ubyte * imageSize)() TypeError: can't multiply sequence by non-int Please help me out, thanks in adva

return struct in ctypes

2005-10-05 Thread James Hu
hi,   I need to use ctypes to call the API function like   fun1(&list, listLen)  //here  list is struct { long id; long type; long isOpen;}  ListItem;   so I define class LIST_ITEM(Structure):    _fields_ = [("Id", c_ulong),    ("Type",c_ulong ),        (

python's performance

2005-09-29 Thread James Hu
Hi, I used python and PIL to capture image from a digital camera, It seems like it took more than 1 second to capture a 1280x1024 image, however, the demo capturing application from the company (coded by VB) took only .2s or less for one image with the same size. Don't know why python and PIL is s

use staticBitmap to show image with raw data?

2005-09-28 Thread James Hu
Hi,   We have a HAMAMATSU camera, and we want to display the real-time image (captured every 0.2s+) on the screen. The captured image from camera is raw data, If saved to PNG file via Image (PIL), and open with wx.Image(“*.png”), the image can be shown on the wx.staticBitmap area. Howeve

how to implement propertyPage using wxPyhton?

2005-09-26 Thread James Hu
Hi, gurus,   I would like to implement something like propertyPage (VC++ term) Ie. There are a few tabs in the  top, clicking any tab will display a different panel. I searched on the Internet, couldn’t get any clue.   Thanks in advance.   James -- http://mail.python.org/mail

wxImage can't read tif file? (WxPython)

2005-09-05 Thread James Hu
Hi, all gurus, I am working on a small project, which needs to display 16 bit tiff image on screen directly, I use wxStaticBitmap to do that, and I can show png and jpg file on the screen without any problem. (converting from tiff to png first is not option though). However, when I try to read tif