I am a tkinter beginner and I would like to ask what is this Traceback (most recent call last): File "C:UsersHPDesktop.py", line 23, in <module> box.insert( "win2",x) File "C:UsersHPAppDataLocalProgramsThonnylibtkinter__init__.py", line 3272, in insert self.tk.call((self._w, ‘insert’, index, chars) + args) _tkinter.TclError: bad text index "win2" although i change ‘win2’ to others but the error still have ..
Is there any way to snap 2 labels together on tkinter, like blocks that snap together when they match the criteria. Source: Python..
I have this starting layout: that I would like to change depending on the number in the spin box, so that if it becomes greater than 0, it adds a collection of widgets however many times the spin box shows, so for example, if the user chose 2 it would display something like this: . ..
When I click start button it says not responding even if code working fine, and I want to terminate the process when to be clicked on stop button, also mainly I want len(faces) to be printed in textbox continuously. What should I do? import cv2 from matplotlib import pyplot from mtcnn.mtcnn import MTCNN import os ..
import mysql.connector conn = mysql.connector.connect(‘table_name.db’) When i run this program, the following error occurs:- Traceback (most recent call last): File "C:UsersReal Project MYSQL.py", line 3, in <module> conn = mysql.connector.connect(‘PAYSLIP.db’) File "C:UsersAppDataLocalProgramsPythonPython38-32libsite-packagesmysqlconnector__init__.py", line 265, in connect return MySQLConnection(*args, **kwargs) File "C:UsersAppDataLocalProgramsPythonPython38-32libsite-packagesmysqlconnectorconnection.py", line 64, in __init__ super(MySQLConnection, self).__init__(*args, **kwargs) TypeError: __init__() takes 1 positional argument but ..
I have an Amazon webscraper that I would like to run as a GUI, and then when a button is clicked, the script runs in the background. I have seen another thread regarding this, but mine involves getting text from Entry so the behavior is still kind of messed up. When I run this code, ..
I’m making a program that will list files and want to implement a function that will refresh the current working folder import sys from PyQt5.QtWidgets import QApplication, QWidget, QTreeView, QFileSystemModel, QVBoxLayout from PyQt5.QtCore import QModelIndex class FileSystemView(QWidget): def __init__(self, dir_path): super().__init__() appWidth = 800 appHeight = 300 self.setWindowTitle(‘File System Viewer’) self.setGeometry(300, 300, appWidth, appHeight) self.model ..
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 ..
Intro:- I want a console for my qt app which shows command runned to system terminal like (cmd, powershell in Windows). I am using commands to like:- subprocess.run() os.system() Some Concepts:- Concept 1:- Embed CMD prompt some-how in app. (Concept1 img below) concept1 img: Concept 2:- Create a console like in Sublime Text 3. (Concept2 ..