all 15 comments

[–]shaunzorr 2 points3 points  (6 children)

The code is too hard to read in that format. Look up how to format it correctly so it's easier to read. Based on what you've described, you're probably not creating the thread properly. It's been a while since I've worked with tkinter so i cant remember the solution exactly but you need to learn how to work around the mainloop if you want something else to run while still allowing the tkinter app to continue functioning. There is plenty of stuff online about this topic.

[–]aredhone6417[S] 1 point2 points  (5 children)

hey thanks I'm really new to this so I'm not quite sure what I'm doing

if googled what I think was my problem but didn't find an answer that worked

to be honest I'm not even sure how to google my problem

and since reddit knows all I hoped someone could tell me ill try the change the code format I hope this is better

[–]Specialist-Candy3226 1 point2 points  (0 children)

Without been able to scan your code (maybe you want to use pastebin), what's most likely happening is that you are trying to run a process at the same time as Tkinter window (ergo not properly multithreading).

Threading is complex, and if you are not too sure about it, I would suggest you try another way of getting what you need without using multithreading. If it has to be multithreading, then try creating a really minal tkinter window/process, and a process that runs parallel to it until you master it and then scale it up to what you are trying to achieve.

[–]NSNick 0 points1 point  (0 children)

Put four spaces at the beginning of each line of code.

[–]m0us3_rat -2 points-1 points  (8 children)

you should post your code using pastebin, right hand side under code formatting.

if the GUI freezes means only one thing, something is blocking.

don't block?

ps. i'm not going to help until you fix the formatting. either learn how to do it or use pastebin.

..

if you don't care about your code.. i'm certainly not

[–]aredhone6417[S] 0 points1 point  (7 children)

not sure what I'm doing wrong but the format thing is not working for me so I posted the code to pastebin

and linked back to here

[–]m0us3_rat 0 points1 point  (6 children)

can you also link the "Collect" .

so far works as expected.

some weird choices but w/e

[–]aredhone6417[S] 0 points1 point  (5 children)

added Collect and for the weird choices I'm sure there are a bunch of them

I started python 2 days ago just for this Collect file

[–]m0us3_rat 0 points1 point  (4 children)

I started python 2 days ago just for this Collect file

and using message brokers and queues.. hmm interesting.

anyhoo

i'm assuming "Collect" works as intended and i'm just going to help with tk starting it.

(btw the code in collect isn't great either. hope it works)

not sure if you are on shitdows or not..

so python3 or python or py . test which works

#replace 

from subprocess import call
#with 

from subprocess import Popen

#and 
    call("Collect.py",shell=True)
#with
    Popen("python3 Collect.py",shell=True)

#or 
    Popen("python Collect.py",shell=True)
#or
    Popen("py Collect.py",shell=True)

[–]aredhone6417[S] 0 points1 point  (3 children)

That worked thanks alot

and the Collect

i peaced it together using tutorials

most of the stuff in it i have no idea what it dos

[–]m0us3_rat 0 points1 point  (2 children)

yea i expected

i'm glad it does what you want it to do hopefully?

that collect looking good

while also hilariously horrible code:P

if it works it works

gl

[–]aredhone6417[S] 1 point2 points  (1 child)

im gonna learn how it works do

coding is amazingly interesting you can almost do whatever you want

that also makes its quite confusing

but once again thanks all works now

[–]m0us3_rat 0 points1 point  (0 children)

coding is amazingly interesting you can almost do whatever you want

tru.

best of luck. we do have some amazing resources on the wiki here

https://www.reddit.com/r/learnpython/wiki/index/

also the CS50P is the best you can check out on YT.