Progress

Robin Becker <[email protected]> Fri, 15 Nov 2002 15:37:02 +0000
Newsgroups gmane.comp.python.anygui.devel
Message-ID <[email protected]>
I have tested dwgui, ctmswgui and mswgui. The first two seem OK and the
latter is still a bit buggy in test_textarea.


The dw, ctmsw and msw backends have support for a ProgressBar. There's
presently no place to put the front end, but here's what I use for
testing.


        class ProgressBar(Component):
                state = {
                        'text': 'ProgressBar',
                        'x': 0,
                        'y': 0,
                        'width': 100,
                        'height': 15,
                        'hmove': 0,
                        'vmove': 0,
                        'hstretch': 0,
                        'vstretch': 0,
                        'visible': 1,
                        'enabled': 1,
                        'pos': 0.,
                        }
                def setPos(self,pos):
                        assert 0<=pos<=1, "pos not in range"
                        self.state['pos'] = pos
                        self.wrapper.setPos(pos)

                def wrapperFactory(self):
                        return backendModule().ProgressBarWrapper(self)

I have also added a couple of interesting classes to the ctmsw & dw
backends including a placeholder for Resources and an inlineResource.
The latter allows images etc to be embedded in python source.

I have also added an ImageWrapper to those backends. This is relatively
easy since we can access all of the win32 API without incurring a large
overhead. It's harder with msw as we have to use another large extension
module.
-- 
Robin Becker


-------------------------------------------------------
This sf.net email is sponsored by: To learn the basics of securing 
your web site with SSL, click here to get a FREE TRIAL of a Thawte 
Server Certificate: http://www.gothawte.com/rd524.html