Categories
Mastering Development

How do I make Python with tkinter display output progress

I am very beginner to programming language. I made a very small program in python to update linux with 2 buttons.I use tkinter for GUI Program works fine and pop up cmd terminal and run. How can I put display the progress in graphical mode output commands? Can I do it with Tkinter or other […]

Categories
Development

How to pass the file location from “askopenfilename” and use it for a second function

It is pretty obvious that I’m pretty new to python and I am trying to make a simple GUI with tkinter that would have two buttons. One “Browse” to open file, and for example “Run” to make some operations with this file. This is the function that I used for File browser, but how to […]

Categories
Development

tkinter Listbox does not show complete content and works only once

I am measuring objects through images from 3 cameras simultaneously (using multiprocessing), and right now I am stuck in the GUI. I have created a button which when pressed performs image processing and calculates the measurements but there are 2 problems: The button works only once and if it is pressed again program does not […]

Categories
Development Windows

Embedded Matplotlib graph in Tkinter only updates with new data when ‘g’ is pressed on keypress event. Why?

I am trying to find a method to update a matplotlib image plot embedded in a tkinter window class by updating the data. The data is modified with a button click and is stored/manipulated using numpy arrays. I have been unsuccessful in deleting the class instance but I have been able to embed the static […]

Categories
Development

Unable to explain difference in behaviour when widgets are packed and not packed

I am making a little application to visualize sound but the control is not behaving consistent. When I have the entry fields enabled (packed) then the program works as I would expect. However if I comment them out the plot no longer shows and I am only getting the sound. Really puzzled about this … […]

Categories
Development Python

How to access a class attribute to layer a text box within a frame using Tkinter and Python3 – Layout not working right

I’m having an issue where when I try to write my GUI application using classes, I can’t get the layout right. Maybe it’s because I’m new to OOP with Python, but I can’t get the Tk.TextBox widget to properly scale and position itself within the GUI. If I write my GUI without any classes and […]

Categories
Development

Updating a variable using a tkinter button

I tried writing a program that tests writing skills. (using tkinter) For use type in y, press enter, write the sentence you were given press enter again and it outputs the time it took you. This is the part that works. To add more flexibility I wanted to add a button that shuffles the sentence […]

Categories
Development

Tkinter app using selenium not responding after clicking run

I created an instagram bot that uses the selenium webdriver along with a tkinter interface. However when the browser is running, the app does not respond not allowing to close it midway or anything else. The tkinter app runs in a seperate class to the actual code class StartPage(tk.Tk): # Load application def __init__(self, root): […]

Categories
Development

How make the indicies of the tkinter.text.get() function variable?

I cant get my indexes to work as a variable in the tkinter text widgets get function. Many things that all point to one problem. I want to copy and insert code without a newline at the end of the line being copied and inserted. And I want it to work within a loop that […]