[python-win32] pythonwin32 UI

Tim Golden tim.golden at viacom-outdoor.co.uk
Wed Apr 28 05:16:41 EDT 2004


>I just joined this group & relatively new to pythonwin.
>I am sorry if this topic has been discussed already.

Well you're touching on things which have been touched
on before, but I don't recall anything in-depth, possibly
because no-one's tried to do it.

I would point out that you're actually asking quite a lot
of things and in a fairly general-purpose way. You might
get more mileage from the collective knowledge of the list
if you broke things down a bit and were more specific.
However...

>I understood that I can create dialog boxes through vc++ [ .rc files] 
>and load those dialog boxes from python.

Yes, but this is very new functionality (imported recently from
the SpamBayes project) so I doubt anyone's too familiar with it
except for the people on that project.

>And I can have some thing similar to message map to have call backs.

Have a look at some of the scripts in the "demos" folder under
wherever you've installed pywin32. In particular, anything
starting with win32gui_...
(in my case, c:\python22\lib\site-packages\win32\demos)

>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?

Can't help on this one, but frankly it could be absolutely 
anything; you need to supply some code or at least some more
information.

>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.
>is this achievable??

Of course it's achievable: the .frm structure looks eminently
parseable, and setting up a callback loop should be possible
(it may already have been done somewhere within the win32ui
code; I've never tried) but it would be a fair bit of work. 
Is there no other solution that might meet the case? Using
something like wxGlade to define the layouts?

>Any help or some sample code on this topic can be of great help to me.

I'm sorry that this hasn't been all that informative a
reponse, but I thought I'd make some response, just to show
that the list is alive. If you haven't already, you might
also try posting to comp.lang.python (aka the python mailing
list: http://www.python.org/mailman/listinfo/python-list).
There are more people reading that list than this (I suppose).

TJG


________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________



More information about the Python-win32 mailing list