Skip to content

howto fall back to regular tkinter when non supported OS encountered? #541

Answered by Akascape
Free-Radical asked this question in Q&A
Discussion options

You must be logged in to vote

@Free-Radical

I'm using the following type of calls (not using OOP)
Or are you implying writing 2 separate series of commands to call normal tkinter and CustomTkinter as required

Here is an Example

import tkinter
import customtkinter
import sys
import tkinter.ttk as ttk

customtkinter.set_appearance_mode("dark")
customtkinter.set_default_color_theme("Light")  

def CTK_App():
    
    app = customtkinter.CTk()
    app.geometry("400x540")
    app.title("CustomTkinter simple_example.py")


    def button_function():
        print("Button click", label_1.text_label.cget("text"))


    def slider_function(value):
        progressbar_1.set(value)


    def check_box_function():
        print("…

Replies: 5 comments 16 replies

Comment options

You must be logged in to vote
1 reply
@Free-Radical
Comment options

Comment options

You must be logged in to vote
1 reply
@Free-Radical
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
11 replies
@TomSchimansky
Comment options

@Free-Radical
Comment options

@Free-Radical
Comment options

@Free-Radical
Comment options

@Free-Radical
Comment options

Comment options

You must be logged in to vote
3 replies
@avalon60
Comment options

@Free-Radical
Comment options

@Free-Radical
Comment options

Answer selected by Free-Radical
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants