What do you want to save?
Add Code snippet
New code examples
-
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-24 15:41:09
auto fill in entry in tkinter
from Tkinter import * import re lista = ['a', 'actions', 'additional', 'also', 'an', 'and', 'angle', 'are', 'as', 'be', 'bind', 'bracket', 'brackets', 'button', 'can', 'cases', 'configure', 'course', 'detail', 'enter', 'event', 'events', 'example', 'fiel... Add solution -
Other 2021-10-24 10:12:06
Get current cursor type and color Tkinter Python
from tkinter import * from tkinter import ttk root=Tk() entry1=Entry(root,cursor="fleur",insertbackground="red") entry1.pack() Button(root,text="Get cursor type and colour", command=lambda: print(entry1['cursor'],entry1['inse... Add solution -
Python 2021-10-23 18:40:11
how to draw loop auto line in python using tkinter
# using the Tkinter canvas to# draw a line from coordinates x1,y1 to x2,y2# create_line(x1, y1, x2, y2, width=1, fill="black")try: # Python2 import Tkinter as tkexcept ImportError: # Python3 import tkinter as tkroot = tk.Tk()root.tit... Add solution
Best helpers
Ranking is empty