[python-win32] wxImage can't read tif file?

2005-09-02 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

[python-win32] 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

[python-win32] 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

Re: [python-win32] create user message for wxPython

2005-10-21 Thread James Hu
, 20 Oct 2005 16:26:35 -0400, "James Hu" <[EMAIL PROTECTED]> >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 ca

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

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

2005-10-21 Thread James Hu
Title: Re: [python-win32] findwindow by its class name Thanks,   Actually, app A is a commercial engine, which written by VC++, but we can't change it at all. app B is our application, which written by wxPython, If we can't find a way to get the classname of app B, it's no way for app A

Re: [python-win32] create user message for wxPython

2005-10-22 Thread James Hu
Title: Re: [python-win32] create user message for wxPython Thanks, VC++ tool Spy++ can do this as well. From: [EMAIL PROTECTED] on behalf of R. Alan MonroeSent: Sat 10/22/2005 8:51 AMTo: python-win32@python.orgSubject: Re: [python-win32] create user message for wxPython > Hi, Tim,> Yo

[python-win32] 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] 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

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

2005-10-27 Thread James Hu
PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tim Roberts Sent: Thursday, October 27, 2005 1:49 PM To: python-win32@python.org Subject: Re: [python-win32] simulate DoEvents by python/wxpython On Wed, 26 Oct 2005 14:10:07 -0400, "James Hu" <[EMAIL PROTECTED]> wrote: >

[python-win32] 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