Questions tagged [mainloop]

69 questions
0
votes
1 answer

Glib Threads vs GMain Loop Eventing

I have a simple system in which there is a GList structure. There are two threads: say Head() that causes ingress of data into the GList structure. Another thread Tail() causes egress of data (and its processing) at tail end of the list. I was going…
Ace
  • 1,501
  • 4
  • 30
  • 49
0
votes
1 answer

Invalid file path for button box

I am creating a window with two buttons - one to import excel files and another to close the window after excel sheets are selected. I can choose the excel files, but when I click Okay, I get an error that I have an invalid file path. using python…
DeAnna
  • 404
  • 6
  • 17
0
votes
1 answer

What range does mainloop() have over code?

I would like to make a python tkinter window with custom-moving widgets on a canvas to simulate motion. For now, I have one canvas, and one not-moving oval widget. I am having problems at the base level; mainloop(). I understand that it runs in wait…
Scott V.
  • 11
  • 2
0
votes
1 answer

Presenting tk instances with Tk.mainloop()

I am programming a yahtzee simulator (for learning) and would like to have a few screens (tkinter instances) running at the same time but i dont want them to start at the same time and I can't figure out why they do start in the same time. I haven't…
Nimrod Rappaport
  • 134
  • 1
  • 1
  • 12
0
votes
1 answer

tkinter radiobutton and mainloop not working properly in python3, using Enthought's Canopy

I am working on a python program using Enthought Canopy (for data acquisition). However I have an issue using tkinter when working in the python 3.5 environment. I can not get the values of my radio buttons using the var.get() function. (both…
-1
votes
1 answer

Why no code is executed after mainloop tkinter python

I know what is the purpose of mainloop (or at least i think), also i know that code placed after mainloop can be executed using after(), but why is like that? Why is mainloop blocking it?
dj dj
  • 1
  • 2
-1
votes
2 answers

How to update a global counter

I am trying to implement a counter in tkinter. I expect it to +1 whenever I click whichever button. However, the counter value always remains the same. Here is my sample code: import tkinter as tk import time Count=0 def callback1(Count): …
user48867
  • 141
  • 1
  • 9
-1
votes
1 answer

Tkinter multiple errors before and after mainloop

I am making an excel comparing program and exporting it to a CSV file. Here is my code: import openpyxl, csv from tkinter import * from tkinter.filedialog import askopenfilename from openpyxl.utils import column_index_from_string output =…
Bill
  • 515
  • 1
  • 4
  • 15
-4
votes
1 answer

how can i run a code after the function root.destroy

hello i'm working on python using tkinter , i want to run a window (in Main) after destroy the first window in Login class , but the problem is that the code stop at the root.destroy and don't execute the reste of the code i tried to replace…
Antony
  • 1
  • 2
1 2 3 4
5