Python Forum
[Tkinter] Toggling the Check button
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tkinter] Toggling the Check button
#4
there may be other ways to accomplish this but .pack_forget() works:
def wrap_text(self):
        self.use  = self.wrap.get()        
        if self.use:
            self.text.config(wrap=WORD)
            self.scrollbar_2.pack_forget()
            self.wrap.set(0)            
            
        else:
            self.text.config(wrap=NONE)
            self.scrollbar_2.pack(fill=X, expand=NO)
            self.wrap.set(1)
Reply


Messages In This Thread
Toggling the Check button - by Vicolas - Mar-02-2019, 01:10 PM
RE: Toggling the Check button - by joe_momma - Mar-03-2019, 11:13 PM
RE: Toggling the Check button - by Vicolas - Mar-07-2019, 06:10 PM
RE: Toggling the Check button - by joe_momma - Mar-11-2019, 06:15 PM
RE: Toggling the Check button - by Vicolas - Mar-16-2019, 07:01 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [PySimpleGui] How to alter mouse click button of a standard submit button? skyerosebud 3 5,080 Jul-21-2019, 06:02 PM
Last Post: FullOfHelp

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020