(self,message=None)
return progress_win
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=None):
        """Show progress bar window for loading of data"""
        progress_win=Toplevel() # Open a new window
        progress_win.title("Please Wait")
        #progress_win.geometry('+%d+%d' %(self.parentframe.rootx+200,self.parentframe.rooty+200))
        #force on top
        progress_win.grab_set()
        progress_win.transient(self.parentframe)
        if message==None:
            message='Working'
        lbl = Label(progress_win,text=message,font='Arial 16')

        lbl.grid(row=0,column=0,columnspan=2,sticky='news',padx=6,pady=4)
        progrlbl = Label(progress_win,text='Progress:')
        progrlbl.grid(row=1,column=0,sticky='news',padx=2,pady=4)
        import ProgressBar
        self.bar = ProgressBar.ProgressBar(progress_win)
        self.bar.frame.grid(row=1,column=1,columnspan=2,padx=2,pady=4)

        return progress_win
def show_progressbar ( self , message = None ) : progress_win = Toplevel ( ) # Open a new window progress_win . title ( "Please Wait" ) #progress_win.geometry('+%d+%d' %(self.parentframe.rootx+200,self.parentframe.rooty+200)) #force on top progress_win . grab_set ( ) progress_win . transient ( self . parentframe ) if message == None : message = 'Working' lbl = Label ( progress_win , text = message , font = 'Arial 16' ) lbl . grid ( row = 0 , column = 0 , columnspan = 2 , sticky = 'news' , padx = 6 , pady = 4 ) progrlbl = Label ( progress_win , text = 'Progress:' ) progrlbl . grid ( row = 1 , column = 0 , sticky = 'news' , padx = 2 , pady = 4 ) import ProgressBar self . bar = ProgressBar . ProgressBar ( progress_win ) self . bar . frame . grid ( row = 1 , column = 1 , columnspan = 2 , padx = 2 , pady = 4 ) return progress_win