What do you want to save?
Add Code snippet
New code examples
-
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-21 07:57:06
how to calculate the variance of all columns in python
df.var() Add solution -
Python 2021-10-18 03:51:13
how to get the words inside a entry tkinter python
import tkinter as tk from tkinter import ttk win = tk.Tk() v = tk.StringVar() def setText(word): v.set(word) a = ttk.Button(win, text="plant", command=setText("plant")) a.pack() b = ttk.Button(win, text="animal", comma... 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 -
C++ 2021-10-07 14:14:07
local static in c++
#include<iostream> void Increment() { int i = 0;//The life time of variable is limited to the function scope i++; std::cout << i << std::endl; };//This will increment i to one and when it will reach the end bracket the lifetime of va... Add solution -
Python 2021-10-06 17:51:05
ad background image with tkinter
app = Tk() app.title("Welcome") image2 =Image.open('C:\\Users\\adminp\\Desktop\\titlepage\\front.gif') image1 = ImageTk.PhotoImage(image2) w = image1.width() h = image1.height() app.geometry('%dx%d+0+0' % (w,h)) #app.configure(background='C:\\Us... Add solution -
Python 2021-10-02 11:11:02
sign up form using tkinter and os gui
#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 -
Python 2021-09-30 06:21:02
python statistics
# Probably the most convenient set of statistics functions are found # in the Numpy package # Basic syntax: import numpy as np np.mean(your_list) # Calculate mean np.median() # Calculate median np.std() # Calculate standard deviation np.var() # Calculate... Add solution -
Python 2021-09-27 19:02:03
how to wait until pressing button in tkinter
import tkinter as tk root = tk.Tk() ... var = tk.IntVar() button = tk.Button(root, text="Click Me", command=lambda: var.set(1)) button.place(relx=.5, rely=.5, anchor="c") print("waiting...") button.wait_variable(var) print(&... Add solution -
Python 2021-09-22 03:35:04
python code to make a calculator frame
# importing everyting from tkinter from tkinter import * # expression to access among all the functions expression = "" # functions def input_number(number, equation): # accessing the global expression variable global e... Add solution