[python-win32] pythonwin32 UI

Anand K Rayudu anand at easi.soft.net
Thu Apr 29 00:47:27 EDT 2004


Hi Everybody,

Thanks a lot for all the suggestions. Now it looks more clear to me & 
want to proceed further.
Also i will try to solve the embedded problem, by minimizing to smallest 
sample code.

I feel that there could be another module to build GUIs quickly using 
win32 frame work.
[ As it is default with python win32.
My application is based on MFC architecture, so I prefer to use MFC 
controls so that GUI provided by customization also
will have same look & feel & behavior]

As I see all necessary architecture & base work has been done.
So may be a GUI builder can wrap this frame work and provide a higher 
level of interface to python users.
Currently to use this module looks like we need to know little more of 
MFC & internals of python.
This is not to criticize just my feel of possible development in future.
I will be glad to contribute my piece of work in this area.

Thanks again

Best Regards,
Anand



Mark Hammond wrote:

>>I have embedded & extended python in to my application. Now i want to
>>take advantage of
>>win32ui layer for my rapid application development environment.
>>    
>>
>
>Note that due to histe^Horical reasons, win32ui is a wrapper around MFC (a
>more object-oriented framework), whereas win32gui is a very raw wrapper
>around the GUI related API functions.
>
>  
>
>>I understood that I can create dialog boxes through vc++ [ .rc files]
>>and load those dialog boxes from python.
>>And I can have some thing similar to message map to have call backs.
>>
>>I create new dialog boxes and i could invoke them from pythonwin32.
>>but if i try to do the same from my embedded application my
>>application
>>is hanging.
>>Could some one suggest me if any special way i can get this?
>>    
>>
>
>It "should work" :)  By using win32ui, you are including all the MFC
>framework, which can get in the way.  win32gui generally has less
>side-effects, but may still impact when embedded with other GUI frameworks
>that make their own assumptions.
>
>If you are using win32gui rather than win32ui, then ensure you have build
>201 installed - an obscure win32gui hang was fixed in that build.
>
>But otherwise, unfortunately, and as usual, the best answer is to reduce the
>problem down to the smallest possible sample code that demonstrates the
>problem.
>
>  
>
>>Also i want to develop a layer which can read .frm file[ the one
>>generated by VB for dialog boxes, i guess similar to .rc file
>>in vc++]
>>and create dialog boxes, and provide message loop for call backs.
>>    
>>
>
>That should be quite simple, and a reference to vb2py has already been made.
>Note however that "message loop for callbacks" is still fairly low-level -
>you are dealing with the various Windows messages, which really can't be
>considered a friendly callback framework.  I *still* can't believe how hard
>GUIs are, even with a decent framework; a conceptual leap is waiting to
>happen here, IMO.
>
>Mark.
>
>
>  
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-win32/attachments/20040429/eeb20105/attachment.html


More information about the Python-win32 mailing list