Thanks Jeff but to be honest I was hoping for Dabo code. Although, I think
this will work within a Dabo app without question. Again thanks.
Johnf
On Saturday 06 September 2008 09:07:17 am Jeff Johnson wrote:
> John: Here is something I put together just to see how it works - and
> it does. You can modify it to use Dabo.
>
>
> import wx
>
> if __name__ == "__main__":
> app = wx.PySimpleApp()
>
> win = wx.Frame(None, -1, "Test Progress Dialog")
> button = wx.Button(win, -1, "start download")
>
> def on_button_click(evt):
>
> progressMax = 10
>
> 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 += 1
> wx.Sleep(1)
> resp = dialog.Update(count)
> keepGoing = resp[0]
> print keepGoing
>
> dialog.Destroy()
>
> button.Bind(wx.EVT_BUTTON, on_button_click)
>
> win.Show()
> app.MainLoop()
>
> johnf wrote:
> > Hi,
> > Just wondering if anyone has created a progress bar dialog (maybe based
> > on the dGage) they would be willing to share. I have need of one that
> > would allow me let the user know how an upload was proceeding. After all
> > I don't want to re-invent the wheel.
_______________________________________________
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/[EMAIL PROTECTED]