Stopping a constant ping in Customtkinter

I have some working code that opens a gui and allows you to enter details for a network ping. There is then a switch to make it a constant ping. This all works fine. (thanks to another thread here haha). I’m hoping someone can help me with figuring out how to configure the other button… Read More Stopping a constant ping in Customtkinter

how to get size in pixels of canvas object, packed iinto ctk.frame

So, I’ve got this code import customtkinter from tkinter import Canvas import tkinter as tk from PIL import Image, ImageTk app = customtkinter.CTk() app.title = ‘spectrum (v1.0.0)’ app.minsize(800, 600) frame1 = customtkinter.CTkFrame(master=app) frame2 = customtkinter.CTkFrame(master=app) frame1.pack(padx=10, pady=10, expand=True, fill="both", side="left") frame2.pack(padx=10, pady=10, expand=False, fill="y", side="right") canvas1 = customtkinter.CTkCanvas(master=frame1, bg="black") canvas1.create_line(0, 0, canvas1.size()[0], canvas1.size()[1], fill="#FFFFFF") canvas1.pack(expand=True,… Read More how to get size in pixels of canvas object, packed iinto ctk.frame

function' object has no attribute 'destroy'

It says function’ object has no attribute ‘destroy When I press the register button, the register wwindow could not be destory and goes to the next page. Designing for registration def register(): global register_screen register_screen = Toplevel(root) register_screen.title("Register") register_screen.geometry("300×250") global username global password global username_entry global password_entry username = StringVar() password = StringVar() Label(register_screen, text="Please… Read More function' object has no attribute 'destroy'