Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Program strange behavior ( windows doesn't close)
Post: RE: Program strange behavior ( windows doesn't clo...

thanks yoris could you point me in the right direction maybe a good tutorial on this thanks
adam2020 GUI 2 2,237 May-12-2019, 09:19 PM
    Thread: Program strange behavior ( windows doesn't close)
Post: Program strange behavior ( windows doesn't close)

Hi guys, I am working on a project for college I'm not sure if I'm allowed post the code and if I am allowed it's extremely long about 3'000 lines of code with multiple classes so it wouldn't be that...
adam2020 GUI 2 2,237 May-12-2019, 08:48 PM
    Thread: Condition check differences and how to organise code?
Post: RE: Condition check differences and how to organis...

ok so I changed the code def find_filter_output(output,find): files = [] lines = output.split("\n") contains = False found = False findStr = str(find) if findStr == "": ...
adam2020 General Coding Help 4 2,704 May-12-2019, 02:13 PM
    Thread: Condition check differences and how to organise code?
Post: Condition check differences and how to organise co...

Hi guys, so I'm not a novice to programming I have been programming in other languages such as Java for a while,but I am relatively new to Python with that being said I also am not an expert and have...
adam2020 General Coding Help 4 2,704 May-11-2019, 09:15 PM
    Thread: Python threads and aircrack-ng
Post: RE: Python threads and aircrack-ng

(Apr-01-2019, 08:30 PM)nilamo Wrote: You write something to a file, but then never read the file or use it. Is that intentional? Also, the second thread might never finish, since you don't call it's...
adam2020 General Coding Help 2 5,010 Apr-01-2019, 08:54 PM
    Thread: Python threads and aircrack-ng
Post: Python threads and aircrack-ng

Hi guys, I'm working on a college project the project is basically a GUI wrapper around the infamous password/wifi key cracking tool aircrack-ng, I have been working on the project for about 5-6 hour...
adam2020 General Coding Help 2 5,010 Apr-01-2019, 07:43 PM
    Thread: Linux command output not working
Post: RE: Linux command output not working

thanks DeadEye to get the output could I still do vv time.sleep(10) stdout,stderr = process.communicate() process.terminate() return stdout,stderrthis way I can still get the output from ...
adam2020 General Coding Help 2 2,734 Mar-23-2019, 01:20 PM
    Thread: Linux command output not working
Post: Linux command output not working

Hi guys, I am working on a network analysis tool for a project in college, I am using airodump-ng to find all networks in the general area, when I run the following command airodump-ng wlan0 --writ...
adam2020 General Coding Help 2 2,734 Mar-22-2019, 08:43 PM
    Thread: Threads join() question
Post: RE: Threads join() question

thanks nilamo that makes sense :)
adam2020 General Coding Help 4 2,629 Mar-19-2019, 09:30 PM
    Thread: Threads join() question
Post: RE: Threads join() question

(Mar-19-2019, 07:59 PM)nilamo Wrote: Thread.join() will stop the current thread, until the referenced thread has completed. In your example, t1.join() would stop the main thread, while both t1 and ...
adam2020 General Coding Help 4 2,629 Mar-19-2019, 08:23 PM
    Thread: Text mode popen
Post: RE: Text mode popen

thanks snippsat :) so many ways :p
adam2020 General Coding Help 6 7,424 Mar-19-2019, 07:38 PM
    Thread: Threads join() question
Post: Threads join() question

Hi guys, so I'm pretty new to threading, I have a question in regards to the join function let me put some example code below import threading def funcOne(): print(threading.current_thread().g...
adam2020 General Coding Help 4 2,629 Mar-19-2019, 07:32 PM
    Thread: Text mode popen
Post: RE: Text mode popen

thanks snippsat :) only issue I am getting is that print(out.stdout.decode()) #Same as decode('utf-8') the decode() function doesn't seem to be a function of out.stdout.decode() on my implementation...
adam2020 General Coding Help 6 7,424 Mar-18-2019, 07:35 PM
    Thread: Text mode popen
Post: RE: Text mode popen

thanks snippsat great answer :) what is the main difference between sub = subprocess.run()and process = popen(['command])(and when would you choose to use one over the other? thanks
adam2020 General Coding Help 6 7,424 Mar-18-2019, 06:37 PM
    Thread: Text mode popen
Post: Text mode popen

Hi guys, first time poster sorry if my post is in the wrong format, anyway I'm following the docs - https://docs.python.org/3/library/subpro...ommunicate prc.communicate() returns a tuple of stdout...
adam2020 General Coding Help 6 7,424 Mar-18-2019, 06:05 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020