I’d like to manually plot lines on a canvas using tkinter but set the x/y scale similar to what you’d normally do in matplotlib using plt.ylim(-3650, 3650) and plt.xlim(-5300, 5300). However, I’d like to keep the canvas window itself at 800×600. Is there a way to do that? Here’s my current working code: import tkinter ..
My goal heher is to show the photo but its not showing #import tkintter from tkinter import * from tkinter.font import Font from PIL import ImageTk,Image root = Tk() #window title root.title("Ad-hoc Networks Attendance System") #Create topframe on root window topframe=Frame(root) #create coustom font for my company my_font=Font(family="Rekha",size=30,weight="bold",slant="italic") #create label on root window label=Label(root,text="Ad-hoc Networks ..
I have this image and I want to make the width of this image longer till the end of the window of tkinter using animation but I haven’t got any proper way to achieving this task. any suggestions ? Source: Python..
I have a very small 10 x 10 pixel jpg image that I want to repeat it in the whole background using tkinter. from tkinter import * root = Tk() img = Image.open(resource_path("FILE LOCATION//filename.jpg")) for i in range(0,1000): image1 = ImageTk.PhotoImage(i) label1 = Label(root, image=image1) label1.pack() root.mainloop() This code this iterating but not sequentially.. I ..
I’m currently trying to make a Tkinter ISPY game in thonny, I found out that I can’t use buttons on as they are too obvious. If anyone knows what phrase I would use to research how to register a mouseclick on a canvas (it would have to be a range/ general area of where the ..
I’m trying to use a horizontal slider to change the xlim of my plot. But first, I can’t figure out how to get the slider to update using the on_changed() method. I don’t have a strong understanding of how classes, and objects interact with each other. I’m using this slider example as a template: import ..
I recently did 2 beginner courses in python coding at university for my Minor, which were followed by an intro to databases and a basic course about CRUD development in PHP. The python course was decent enough and touched on most of the basics. I’ve been trying to teach myself by making small applications to ..
I am using tkinter to create a plot containing two curves. I managed to plot them but it displays only positive values on the x axis. graph = Figure(figsize=(5,5), dpi=100) A0=1 b=.1 y = [-((A0/pi)*(1-b*x))**0.5 for x in range(-101, (int(1/b)+1))] z = [((A0 / pi) * (1 – b * x)) ** 0.5 for x ..
I’m trying to code a checkerboard with Tkinter that responds to the user’s input on how large the square cells should be, i.e: "Enter length of sqaure: " The canvas is a 500×500 and the pattern has to fill all of it. I genuinely am very stuck, and haven’t even gotten past the Canvas in ..
I had the idea to make a python Tkinter ISPY game, but now I’m unsure how that would work. I was told that there is a function so that when you click on a general area it would have a function (like a button but not obviously button-looking so that it could still be a ..