What do you want to save?
Add Code snippet
New code examples
-
Python 2022-01-31 20:22:02
can tkinter have multiple windows open?
#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 -
Python 2021-11-11 23:48:22
modules in python
#use import statement to import modules import random r = random.randint(1,10) #use from-import statements to import functions from random import randint r = randint(1,10) #use from module import * statement to import all functions from random import * r ... Add solution -
Javascript 2021-11-05 04:47:16
Trouble setting up sample table. “Could not find matching row model for rowModelType clientSide”
To solve this problem, I had to first import ModuleRegistry and AllCommunityModules in maint.ts and add ModuleRegistry.registerModules(AllCommunityModules); below just before platformBrowserDynamic().bootstrapModule(AppModule) like: import { ModuleRegist... Add solution -
Python 2021-10-28 19:27:17
python convert binary / hexadecimal / decimal to binary / hexadecimal / decimal
## First install the module coden with pip in cmd # pip install coden ## import module import coden ## Convert # Binary to Decimal ans = coden.bin_to_int(number) # Binary to Hexadecimal ans = coden.bin_to_hex(number) # Hexadecimal to Decimal ans = cod... 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 -
Python 2021-10-16 15:01:08
create form with tkinter
#import modules from tkinter import * import os # Designing window for registration def register(): global register_screen register_screen = Toplevel(main_screen) register_screen.title("Register") register_screen.geometry(&quo... Add solution