Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Disable Enter Key PyQt5 Wizard
Post: RE: Disable Enter Key PyQt5 Wizard

For anyone interested. The problem was solved like so.. To access the buttons you must use the button() method and pass the QWizard::WizardButton, in your case you must disable the default of the QP...
maffaz GUI 1 6,738 Jul-02-2018, 09:45 AM
    Thread: Disable Enter Key PyQt5 Wizard
Post: Disable Enter Key PyQt5 Wizard

I am making a Wizard in QWizard I have QLineEdit and QPushButton # Enter token self.enter_token_box = QLineEdit() # Enter token button self.btn = QPushButton('OK') # con...
maffaz GUI 1 6,738 Jul-01-2018, 08:42 PM
    Thread: Subprocess.send_signal, wait until completion
Post: RE: Subprocess.send_signal, wait until completion

(Jun-28-2018, 09:53 PM)maffaz Wrote: Have a look at this example: https://python-forum.io/Thread-Popen-How...5#pid50825 Let me know if it helps. you will have to modify a little.. If it doesn't ...
maffaz General Coding Help 5 9,084 Jun-29-2018, 06:26 AM
    Thread: Subprocess.send_signal, wait until completion
Post: RE: Subprocess.send_signal, wait until completion

Have a look at this example: https://python-forum.io/Thread-Popen-How...5#pid50825 Let me know if it helps. you will have to modify a little.. If it doesn't please post the code and we can have a ...
maffaz General Coding Help 5 9,084 Jun-28-2018, 09:53 PM
    Thread: Popen - How can I read data before CTRL+C command is issued
Post: RE: Popen - How can I read data before CTRL+C comm...

for anyone that is interested. I have found the problem but it is not Python Related, Rather the C implementation of the tool.. Quote:The problem here is probably, that the output of your CLI program...
maffaz General Coding Help 13 10,316 Jun-28-2018, 09:18 AM
    Thread: Subprocess.send_signal, wait until completion
Post: RE: Subprocess.send_signal, wait until completion

You can use process.wait( wait() Or check_output or check_call which all wait for the return code depending on what you want to do and the version of python. time.sleep(0.5) proc.send_signal(signal...
maffaz General Coding Help 5 9,084 Jun-28-2018, 07:19 AM
    Thread: Popen - How can I read data before CTRL+C command is issued
Post: RE: Popen - How can I read data before CTRL+C comm...

(Jun-27-2018, 07:39 PM)volcano63 Wrote: (Jun-27-2018, 03:22 PM)maffaz Wrote: With ping it worked as expected and with the tool I am using I got nothing until I pressed CTRL+C again. any ideas are...
maffaz General Coding Help 13 10,316 Jun-27-2018, 08:35 PM
    Thread: Popen - How can I read data before CTRL+C command is issued
Post: RE: Popen - How can I read data before CTRL+C comm...

(Jun-26-2018, 01:17 PM)volcano63 Wrote: Cannot be done, you say **naughty** ? This was done on Ubuntu Output:In [23]: ping_proc = subprocess.Popen(['ping', 'google.com'], ...: ...
maffaz General Coding Help 13 10,316 Jun-27-2018, 03:22 PM
    Thread: Popen - How can I read data before CTRL+C command is issued
Post: RE: Popen - How can I read data before CTRL+C comm...

(Jun-27-2018, 07:39 AM)volcano63 Wrote: (Jun-27-2018, 05:59 AM)maffaz Wrote: Interesting! That is golden advice even if it does not work.. The ping example works fine with stdout but not the too...
maffaz General Coding Help 13 10,316 Jun-27-2018, 07:48 AM
    Thread: Popen - How can I read data before CTRL+C command is issued
Post: RE: Popen - How can I read data before CTRL+C comm...

(Jun-26-2018, 01:17 PM)volcano63 Wrote: Cannot be done, you say **naughty** ? This was done on Ubuntu Output:In [23]: ping_proc = subprocess.Popen(['ping', 'google.com'], ...: ...
maffaz General Coding Help 13 10,316 Jun-27-2018, 05:59 AM
    Thread: Popen - How can I read data before CTRL+C command is issued
Post: RE: Popen - How can I read data before CTRL+C comm...

(Jun-26-2018, 09:31 AM)volcano63 Wrote: You can can try reading from self.proc.stdout till you get your device in the output - and then kill the process. for line in self.proc.stdout: if <>...
maffaz General Coding Help 13 10,316 Jun-26-2018, 09:44 AM
    Thread: Popen - How can I read data before CTRL+C command is issued
Post: RE: Popen - How can I read data before CTRL+C comm...

I can handle the Exception no problem. The problem I have is that I want to issue the CTRL+C command upon hitting a certain device. I cannot read the data until the CTRL+C command is sent and the to...
maffaz General Coding Help 13 10,316 Jun-26-2018, 09:16 AM
    Thread: Popen - How can I read data before CTRL+C command is issued
Post: Popen - How can I read data before CTRL+C command ...

I have a command line tool in windows that scans for devices. It will loop through all devices in range repeating until it receives a CTRL+C command. device1 name firmware device2 name firmw...
maffaz General Coding Help 13 10,316 Jun-26-2018, 08:32 AM

User Panel Messages

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