Python Forum
Found buttonstate in tabs
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Found buttonstate in tabs
#2
Couple of hour later... Big Grin

This is what I'am looking for...

    button = buttons[int(i)]
    
    print(buttons[int(i)].cget('relief'))

    if buttons[int(i)].cget('relief') == 'raised' :
        if int(myButton[i].onlyOff) < 1 :
            button.configure(relief='sunken', bg=markedLight)
    else:
        button.configure(relief='raised', bg=myButton[i].offColor)
Reply


Messages In This Thread
Found buttonstate in tabs - by MacTommu - Sep-22-2021, 11:10 AM
RE: Found buttonstate in tabs - by MacTommu - Sep-22-2021, 01:47 PM
RE: Found buttonstate in tabs - by deanhystad - Sep-22-2021, 04:10 PM
RE: Found buttonstate in tabs - by MacTommu - Sep-22-2021, 05:39 PM
RE: Found buttonstate in tabs - by deanhystad - Sep-22-2021, 05:56 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  TabError: inconsistent use of tabs and spaces in indentation hobbyist 3 4,996 Jun-15-2021, 10:38 PM
Last Post: davide73_italy
  [Tkinter] Vertical Tabs Alignment in Tkinter muhammadasim 2 6,188 Oct-05-2020, 08:40 AM
Last Post: Larz60+
  [Tkinter] Need help please properly putting tabs within a PanedWindow JackMack118 2 3,438 Dec-08-2019, 03:02 PM
Last Post: balenaucigasa
  [PyQt] Drag items across tabs Alfalfa 5 4,892 Sep-01-2019, 11:58 PM
Last Post: Alfalfa
  [Tkinter] Adding space between Notebook tabs Columbo 4 4,647 Jul-10-2019, 10:46 PM
Last Post: Columbo
  [Tkinter] How to get a tabs works exactly same as google chrome sarthak260 0 3,849 Mar-07-2019, 10:45 AM
Last Post: sarthak260
  [Tkinter] How to create multilple tabs in tkinter from different classes Rishav 5 18,461 Jul-11-2018, 11:59 AM
Last Post: CCChris91
  How to create mutiple tabs in tkinter using oops Rishav 2 6,952 Jul-12-2017, 04:43 PM
Last Post: Rishav

Forum Jump:

User Panel Messages

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