I am creating an image viewer that is split into four frames with each of which displaying an image separately. Currently, I commented-out 3 out of four frames to focus on fixing the exceptions first. I am trying to display an image inside a canvas, the latter being embedded inside frame_1 on the top-left corner ..
I installed "request" but I can not import it in my Python. I dont know why? CMD: pip install requests Python: import requests Error: ModuleNotFoundError: No module named ‘requests’ Source: Python..
I am trying to make an image viewer that is split into four frames each of which displays an image separately, I keep getting this error: Traceback (most recent call last): File "c:/Users/EM/Desktop/Scripts/gui/slideshow_model/slide_show_class.py", line 60, in <module> slideshow_model = SlideshowModel(root) File "c:/Users/EM/Desktop/Scripts/gui/slideshow_model/slide_show_class.py", line 22, in __init__ self.frame_1, width=self.grid_w, height=self.grid_height) File "C:UsersEMAppDataLocalProgramsPythonPython37libtkinter__init__.py", line 2098, in __getattr__ ..
I am not new to python but also not great at it. i am trying to learn Tkinter again as i completely forgot it lol, however i seem to be stuck. You see i have this text adventure game im making and everytime you clikc a button it should root.withdraw() the window and make a ..
I am trying to get the selected option from the given below OptionMenu, but I am not able to use the selected value globally. def callback(selection): print(selection) return selection yearl=Label(Frame1, text=’Select Year ‘,font=("Helvetica", 10) ).place(relx=-0.3, rely=-1.40) valueyear= [‘2018’, ‘2019’, ‘2020’,’2021′, ‘2022’, ‘2023’] n =StringVar(Frame1) n.set(valueyear) yearchoosen = OptionMenu(Frame1, n, *valueyear, command=callback).place(relx=0.3, rely=-1.45, width=160) In callback ..
I just want to ask why the previous one works just fine compared the next one, where in fact they are almost just the same except for the 4th line. TIA #….start of 1st …. import tkinter root = tkinter.Tk() root.title("Random_Button_Box v1") e = tkinter.Entry(root, width=50) e.pack() def myClick(): myLabel = tkinter.Label(root, text=e.get()).pack() myButton = ..
Please assist, need help guys! Try to write code for searching word in a log file myFileMonitor.log Searching part is working fine but I want the user input for search should show inside the text widget in tkinter. Whenever I run the program the user input is going inside the terminal mode in pycharm and ..
I want to code an gui with an backround. The Image is in the same folder, were the project is. But I can not still set this as my backround. It says to me, that the image cound not found. Error: _tkinter.TclError: couldn’t recognize data in image file "C:Desktoppython.projectswetterguilandscape.png" My Code: #Imports import tkinter as ..
How to display console error messages in the program? (and downloading progress bar) I made a program with tkinter that installs python modules with Pip by simply writing the module’s name. But the problem is that I can only display an error message when someone doesn’t write anything, not for example, when a module is ..
OS: Mac OS X – Mojave How do I achieve the following Python code using a simple pop up GUI tkinter window? x = input("Type your name: ") print(x) Source: Python..