PEATDB/Dialogs.py
def show_loading_progress(self, message='Working..'):
        """Show plain progress 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
        self.progress_win.grab_set()
        self.progress_win.transient(self.main)
        progrlbl = Label(self.progress_win,text=message)
        progrlbl.grid(row=0,column=0,sticky='news',padx=6,pady=4)
        progrlbl2 = Label(self.progress_win,text='Please Wait..')
        progrlbl2.grid(row=1,column=0,sticky='news',padx=6,pady=4)
        self.progress_win.update()
        return
Show plain progress window for loading of data
Show plain progress window for loading of data
Show plain progress window for loading of data
def show_loading_progress(self, message='Working..'):
        self.progress_win=Toplevel() 
        self.progress_win.title("Please Wait")
        self.progress_win.geometry('+%d+%d' %(self.rootx+200,self.rooty+200))
        self.progress_win.grab_set()
        self.progress_win.transient(self.main)
        progrlbl = Label(self.progress_win,text=message)
        progrlbl.grid(row=0,column=0,sticky='news',padx=6,pady=4)
        progrlbl2 = Label(self.progress_win,text='Please Wait..')
        progrlbl2.grid(row=1,column=0,sticky='news',padx=6,pady=4)
        self.progress_win.update()
        return
def show_loading_progress ( self , message = 'Working..' ) : self . progress_win = Toplevel ( ) self . progress_win . title ( "Please Wait" ) self . progress_win . geometry ( '+%d+%d' % ( self . rootx + 200 , self . rooty + 200 ) ) self . progress_win . grab_set ( ) self . progress_win . transient ( self . main ) progrlbl = Label ( self . progress_win , text = message ) progrlbl . grid ( row = 0 , column = 0 , sticky = 'news' , padx = 6 , pady = 4 ) progrlbl2 = Label ( self . progress_win , text = 'Please Wait..' ) progrlbl2 . grid ( row = 1 , column = 0 , sticky = 'news' , padx = 6 , pady = 4 ) self . progress_win . update ( ) return
Show plain progress window for loading of data
Show plain progress window for loading of data
"""Show plain progress window for loading of data""" # Open a new window #force on top
self
message