Exemple #1
0
 def click_me(self):
     # Passing in the current class instance (self)
     bq.writeToScrol(self)
     sleep(2)
     htmlData = url.getHtml()
     print(htmlData)
     self.scr.insert(tk.INSERT, htmlData)
Exemple #2
0
 def clickMe(self):
     self.action.configure(text='Hello ' + self.name.get())
     # for idx in range(10):
     #     time.sleep(5)
     #     self.scr.insert(tk.INSERT, str(idx) + '\n')
     # self.createThread()
     print(self)
     bq.writeToScrol(self)
 def clickMe(self):
     #self.action.configure(text='Hello ' + self.name.get()+ ' ' + self.numberChosen.get())
     # aLabel.configure(foreground='red')
     # self.createThread(8)
     qs.writeToScrol(self)
     time.sleep(2)
     htmlData = url.getHtml()
     print(htmlData)
     self.scr.insert(tk.INSERT, htmlData)
Exemple #4
0
    def clickMe(self):
        self.action.configure(text='Hello ' + self.name.get())
#         # Non-threaded code with sleep freezes the GUI
#         for idx in range(10):
#             sleep(5)
#             self.scr.insert(tk.INSERT, str(idx) + '\n')

#         # Threaded method does not freeze our GUI
#         self.createThread()

        # Passing in the current class instance (self)
        print(self)
        bq.writeToScrol(self)
        sleep(2)
        htmlData = url.getHtml()
        print(htmlData)
        self.scr.insert(tk.INSERT, htmlData)
Exemple #5
0
 def click_me(self):
     # Passing in the current class instance (self)
     print(self)
     bq.writeToScrol(self)
 def clickMe(self):
     self.action.configure(text='Click Called ' + self.name.get())        
     # Passing in the current class instance (self)
     print(self)
     bq.writeToScrol(self)