def __init__(self, parent, title, message): download_progress.__init__(self) wx.ProgressDialog.__init__(self, parent=parent, title=title, message=message, style=wx.PD_ELAPSED_TIME|wx.PD_CAN_ABORT|wx.PD_AUTO_HIDE, maximum=100) self.Connect(-1, -1, DOWNLOAD_INCREMENT_ID, self.OnIncrement) self.Connect(-1, -1, DOWNLOAD_COMPLETE_ID, self.OnComplete) self._continue = True
def __init__ (self, parent, title, message) : download_progress.__init__(self) wx.ProgressDialog.__init__(self, parent=parent, title=title, message=message, style=wx.PD_ELAPSED_TIME|wx.PD_CAN_ABORT|wx.PD_AUTO_HIDE, maximum=100) self.Connect(-1, -1, DOWNLOAD_INCREMENT_ID, self.OnIncrement) self.Connect(-1, -1, DOWNLOAD_COMPLETE_ID, self.OnComplete) self._continue = True
def __init__(self, parent, title, message): download_progress.__init__(self) pyprogress.PyProgress.__init__(self, parent, -1, title, message, agwStyle=wx.PD_ELAPSED_TIME|wx.PD_CAN_ABORT|wx.PD_AUTO_HIDE) self.SetGaugeProportion(0.15) self.SetGaugeSteps(100) self.SetGaugeBackground(wx.Colour(235, 235, 235)) self.SetFirstGradientColour(wx.Colour(235,235,235)) self.SetSecondGradientColour(wx.Colour(120, 200, 255)) self.Connect(-1, -1, DOWNLOAD_COMPLETE_ID, self.OnComplete) self._continue = True
def __init__ (self, parent, title, message) : download_progress.__init__(self) pyprogress.PyProgress.__init__(self, parent, -1, title, message, agwStyle=wx.PD_ELAPSED_TIME|wx.PD_CAN_ABORT|wx.PD_AUTO_HIDE) self.SetGaugeProportion(0.15) self.SetGaugeSteps(100) self.SetGaugeBackground(wx.Colour(235, 235, 235)) self.SetFirstGradientColour(wx.Colour(235,235,235)) self.SetSecondGradientColour(wx.Colour(120, 200, 255)) self.Connect(-1, -1, DOWNLOAD_COMPLETE_ID, self.OnComplete) self._continue = True