예제 #1
0
 def OnInitDialog(self):
     code = super().OnInitDialog()
     self.pbar = win32ui.CreateProgressCtrl()
     self.pbar.CreateWindow(
         win32con.WS_CHILD | win32con.WS_VISIBLE, (10, 10, 310, 24), self, 3000
     )
     return code
예제 #2
0
 def OnInitDialog(self):
     rc = dialog.Dialog.OnInitDialog(self)
     self.pbar = win32ui.CreateProgressCtrl()
     self.pbar.CreateWindow(win32con.WS_CHILD | win32con.WS_VISIBLE,
                            (10, 10, 310, 24), self, 1001)
     # self.pbar.SetStep (5)
     self.progress = 0
     self.pincr = 5
     return rc
예제 #3
0
파일: status.py 프로젝트: beiske/play
 def OnInitDialog(self):
     rc = dialog.Dialog.OnInitDialog(self)
     self.static = self.GetDlgItem(1000)
     self.pbar = win32ui.CreateProgressCtrl()
     self.pbar.CreateWindow(win32con.WS_CHILD | win32con.WS_VISIBLE,
                            (10, 30, 310, 44), self, 1001)
     self.pbar.SetRange(0, self.maxticks)
     self.pbar.SetStep(self.tickincr)
     self.progress = 0
     self.pincr = 5
     return rc