What do you want to save?
Add Code snippet
New code examples
-
Python 2021-11-14 01:03:20
tkinter radio button get value
def Yobidasi1 (): def func1 (): print ("resurt", Radio_Value0.get ()) if Radio_Value0.get () == 0: ... Add solution -
Python 2021-10-27 04:54:09
python message box yes no script
import tkinter as tk from tkinter import messagebox root= tk.Tk() canvas1 = tk.Canvas(root, width = 300, height = 300) canvas1.pack() def ExitApplication(): MsgBox = tk.messagebox.askquestion ('Exit Application','Are you sure you want to exit the a... Add solution -
Other 2021-10-27 03:56:09
tkinter add new element into grid by click
import tkinter as tk class App(tk.Frame): def __init__(self, master, *args, **kwargs): tk.Frame.__init__(self, master, *args, **kwargs) self.master = master self.label_frame = tk.Frame(self.master) self.label_frame.g... Add solution -
Python 2021-10-23 07:37:13
python snakes and ladders
#Heres a snakes and ladders game I made, felt the need to share it so others could play it too import tkinter as tk from time import sleep from random import randint root = tk.Tk() Grid = [] for i in range(8): GridRow = [] for j in range(8): Gr... Add solution -
Python 2021-10-19 17:35:06
how to create multiple windows in tkinter with button
#import module needed import tkinter as tk #write the new window function which #will be called when button pressed def new_window(): window = tk.Toplevel(root) canvas = tk.Canvas(window, height=HEIGHT, width=WIDTH) canvas.pack() HEIGHT = 400... Add solution