What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2021-08-31 16:29:03
how to show installed tkinter fonts
from tkinter import * from tkinter import font root = Tk() root.title('Font Families') fonts=list(font.families()) fonts.sort() def populate(frame): '''Put in the fonts''' listnumber = 1 for item in fonts: label = "listlabel&quo... Add solution -
Python 2021-08-31 12:26:02
play music with time in python
from tkinter import* import pyglet root = Tk() player = pyglet.media.Player() song = "er.mp3" src = pyglet.media.load(song) player.queue(src) def play(): player.play() def pause(): player.pause() button_1 = Button(root,text = "... Add solution -
Python 2021-08-29 15:54:02
tkinter radiobutton
from tkinter import * root = Tk() i = IntVar() #Basically Links Any Radiobutton With The Variable=i. r1 = Radiobutton(root, text="option 1", value=1, variable=i) r2 = Radiobutton(root, text="option 2", value=2, variable=i) # "&q... Add solution -
Python 2021-08-28 01:50:02
scrollable canvas in Tkinter
import tkinter as tk from tkinter import ttk root = tk.Tk() container = ttk.Frame(root) canvas = tk.Canvas(container) #create canvas in the container frame scrollbar = ttk.Scrollbar(container, orient="vertical", command=canvas.yview) #create sc... Add solution
Best helpers
Ranking is empty