PEATDB/Dialogs.py
def show_progressbar(self,message):
        """Show progress bar window for loading of data"""
        self.progress_win=Toplevel() # Open a new window
        self.progress_win.title("Please Wait")
        self.progress_win.geometry('+%d+%d' %(self.rootx+200,self.rooty+200))
        #force on top
        try:
            self.progress_win.grab_set()
            self.progress_win.transient(self.main)
        except:
            pass
        lbl = Label(self.progress_win,text=message,font='Arial 16')
        #lbl = Label(self.progress_win,text=self.themessage,font='Arial 16')
        lbl.grid(row=0,column=0,columnspan=2,sticky='news',padx=6,pady=4)
        progrlbl = Label(self.progress_win,text='Progress:')
        progrlbl.grid(row=1,column=0,sticky='news',padx=2,pady=4)
        import ProgressBar
        self.bar = ProgressBar.ProgressBar(self.progress_win)
        self.bar.frame.grid(row=1,column=1,columnspan=2,padx=2,pady=4)
        return
Show progress bar window for loading of data
Show progress bar window for loading of data
Show progress bar window for loading of data
def show_progressbar(self,message):
        self.progress_win=Toplevel() 
        self.progress_win.title("Please Wait")
        self.progress_win.geometry('+%d+%d' %(self.rootx+200,self.rooty+200))
        try:
            self.progress_win.grab_set()
            self.progress_win.transient(self.main)
        except:
            pass
        lbl = Label(self.progress_win,text=message,font='Arial 16')
        lbl.grid(row=0,column=0,columnspan=2,sticky='news',padx=6,pady=4)
        progrlbl = Label(self.progress_win,text='Progress:')
        progrlbl.grid(row=1,column=0,sticky='news',padx=2,pady=4)
        import ProgressBar
        self.bar = ProgressBar.ProgressBar(self.progress_win)
        self.bar.frame.grid(row=1,column=1,columnspan=2,padx=2,pady=4)
        return
def show_progressbar ( self , message ) : self . progress_win = Toplevel ( ) self . progress_win . title ( "Please Wait" ) self . progress_win . geometry ( '+%d+%d' % ( self . rootx + 200 , self . rooty + 200 ) ) try : self . progress_win . grab_set ( ) self . progress_win . transient ( self . main ) except : pass lbl = Label ( self . progress_win , text = message , font = 'Arial 16' ) lbl . grid ( row = 0 , column = 0 , columnspan = 2 , sticky = 'news' , padx = 6 , pady = 4 ) progrlbl = Label ( self . progress_win , text = 'Progress:' ) progrlbl . grid ( row = 1 , column = 0 , sticky = 'news' , padx = 2 , pady = 4 ) import ProgressBar self . bar = ProgressBar . ProgressBar ( self . progress_win ) self . bar . frame . grid ( row = 1 , column = 1 , columnspan = 2 , padx = 2 , pady = 4 ) return
Show progress bar window for loading of data
Show progress bar window for loading of data
"""Show progress bar window for loading of data""" # Open a new window #force on top #lbl = Label(self.progress_win,text=self.themessage,font='Arial 16')
self
message