I was experimenting with the wx.ProgressDialog and ran into a problem 
that I have had with FoxPro.  You can't click the cancel button so that 
.Update() returns false as advertised

import wx

if __name__ == "__main__":
        app = wx.PySimpleApp()
        progressMax = 100

        dialog = wx.ProgressDialog("A progress box",
                "Time remaining", progressMax,
                 style=wx.PD_CAN_ABORT | wx.PD_ELAPSED_TIME | 
wx.PD_REMAINING_TIME)

        keepGoing = True
        count = 0

        while keepGoing and count < progressMax:
                count = count + 1
                wx.Sleep(1)
                keepGoing = dialog.Update(count)
                 # tried break and setting count to progressMax
                # print always returned (True, False)
                 print keepGoing

         dialog.Destroy()

Am I missing something?

TIA



-- 
Jeff

Jeff Johnson
[EMAIL PROTECTED]
SanDC, Inc.
623-582-0323
Fax 623-869-0675


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/dabo-users/[EMAIL PROTECTED]

Reply via email to