[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

[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. Win32gui

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,

[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 catch this message, note, B is running before A sends

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,

[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