Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: playing .wav sound file with sounddevice
Post: RE: playing .wav sound file with sounddevice
Parsing through your link again i came up with the below code. The play and stop buttons work as they should.
I want to keep the stop button disabled until I hit play for a file when the file is don... |
|
shift838 |
General Coding Help |
5 |
2,393 |
Mar-11-2022, 03:35 AM |
|
|
Thread: playing .wav sound file with sounddevice
Post: RE: playing .wav sound file with sounddevice
Looked at your link and attempted to implement both method#1 and #3 but I hear no sound whatsoever.
I changed my playwav function below.
def playwav(self):
filename = self.lineEditsdir.tex... |
|
shift838 |
General Coding Help |
5 |
2,393 |
Mar-11-2022, 12:07 AM |
|
|
Thread: playing .wav sound file with sounddevice
Post: playing .wav sound file with sounddevice
I have worked out how to play the file and I am using a PyQT5 form i created. Nothing fancy.
So I want to be able to update a status message to state 'Playing' while the .wav file is playing and the... |
|
shift838 |
General Coding Help |
5 |
2,393 |
Mar-10-2022, 11:06 PM |
|
|
Thread: run executable in separate process thread
Post: run executable in separate process thread
I want to be able to call and run an executable in a separate thread so when running it the Python GUI application does not freeze up.
I'm not sure how to do this.
I have a single button on my gui f... |
|
shift838 |
GUI |
1 |
4,273 |
Jan-30-2019, 02:00 AM |
|
|
Thread: Python GUI layout off between different OS
Post: RE: Python GUI layout off between different OS
(Jan-01-2019, 11:20 AM)Axel_Erfurt Wrote: Which layout does qtdesigner use?.
QGridLayout, QFormLayout, QVBoxLayout or simple setGeometry() ?
Qt5 Layout Management
From what I can tell QTDesigner u... |
|
shift838 |
GUI |
5 |
3,729 |
Jan-02-2019, 02:53 AM |
|
|
Thread: Python GUI layout off between different OS
Post: RE: Python GUI layout off between different OS
(Dec-30-2018, 09:29 PM)Axel_Erfurt Wrote: maybe you can use stylesheets
It's not the formatting of the widget, but the placement of the control on the page that is off. I thought stylesheets was st... |
|
shift838 |
GUI |
5 |
3,729 |
Jan-01-2019, 04:33 AM |
|
|
Thread: Python GUI layout off between different OS
Post: Python GUI layout off between different OS
I am working on a program to call a GUI I designed in PyQt5 Designer.
The gui looks exactly as I designed it in Windows 10, but on Linux or Mac the design is off. Like the buttons are moved, the tex... |
|
shift838 |
GUI |
5 |
3,729 |
Dec-30-2018, 04:52 PM |
|
|
Thread: clear all widgets at same time (not delete/remove)
Post: clear all widgets at same time (not delete/remove)
Is there an easy way to clear all my pyqt5 widgets at the same time. Reset them back to default at form load via code?
Comboboxes, checkboxes, lineEdits, etc?
Or do I just need to individually ru... |
|
shift838 |
GUI |
0 |
2,765 |
Dec-17-2018, 11:55 PM |
|
|
Thread: Get Serial ports via Function
Post: Get Serial ports via Function
I have the below code that works fine by itself but not in a function to retrieve the name of the serial ports.
import serial.tools.list_ports
ports = serial.tools.list_ports.comports(include_links=F... |
|
shift838 |
General Coding Help |
1 |
3,958 |
Dec-10-2018, 01:17 AM |
|
|
Thread: pyqt5 combobox add item with loop
Post: RE: pyqt5 combobox add item with loop
(Dec-09-2018, 07:46 PM)Alfalfa Wrote: We can't tell what the self.ui.comboboxslot(x) are referring to, but supposing that you have comboboxslot_1, comboboxslot_2 and so on in your UI file, and that ... |
|
shift838 |
GUI |
5 |
9,627 |
Dec-09-2018, 08:54 PM |
|
|
Thread: pyqt5 combobox add item with loop
Post: RE: pyqt5 combobox add item with loop
(Dec-09-2018, 01:21 AM)shift838 Wrote: Is there a way to use a for loop to add items to comboboxes. All items would be the same in each combobox.
I thought the below might work but nada:
x equals... |
|
shift838 |
GUI |
5 |
9,627 |
Dec-09-2018, 05:13 AM |
|
|
Thread: pyqt5 combobox add item with loop
Post: pyqt5 combobox add item with loop
Is there a way to use a for loop to add items to comboboxes. All items would be the same in each combobox.
I thought the below might work but nada:
x equals the combobox #, all have the same name b... |
|
shift838 |
GUI |
5 |
9,627 |
Dec-09-2018, 01:21 AM |
|
|
Thread: combobox value PyQt
Post: RE: combobox value PyQt
one other questions. can the python files be compiled into an executable for both Windows and Linux when using the .ui files ? |
|
shift838 |
GUI |
9 |
18,360 |
Dec-07-2018, 08:14 PM |
|
|
Thread: combobox value PyQt
Post: RE: combobox value PyQt
(Dec-05-2018, 02:32 PM)Alfalfa Wrote: You should do it the other way around. As your UI file is likely auto-generated, instead it should be imported from your custom module (mymods). Then 'mymods' b... |
|
shift838 |
GUI |
9 |
18,360 |
Dec-05-2018, 03:27 PM |
|
|
Thread: combobox value PyQt
Post: combobox value PyQt
I a learning python programming and selected PyQt5 to use for my GUI.
I have created a test form just to get the feel of python and I want to connect functions from a module file called 'mymods' to e... |
|
shift838 |
GUI |
9 |
18,360 |
Dec-04-2018, 09:33 PM |
|
|
Thread: code execution after event
Post: RE: code execution after event
(Nov-25-2018, 10:09 PM)Larz60+ Wrote: Quote:I have coded a GUI
which GUI package?
tkinter |
|
shift838 |
General Coding Help |
3 |
2,831 |
Nov-25-2018, 11:30 PM |
|
|
Thread: code execution after event
Post: code execution after event
i am very new to Python. I'm a .NET programmer but want to get into Python so I can write cross-platform code that will work on Windows as well as Linux based OS'.
I have coded a GUI python form for... |
|
shift838 |
General Coding Help |
3 |
2,831 |
Nov-25-2018, 09:49 PM |
|
|
Thread: python cross platfrom FILE IO
Post: python cross platfrom FILE IO
So, am very new to Python.
I want to create a program that can be ran on Windows / Linux that access the file system to execute a file with arguments.
With the file systems being different between t... |
|
shift838 |
General Coding Help |
1 |
2,387 |
Nov-18-2018, 06:29 PM |
|
|
Thread: Simple TCP Server
Post: RE: Simple TCP Server
(May-11-2017, 04:42 PM)nilamo Wrote: (May-11-2017, 02:58 AM)shift838 Wrote: def run(self):
while 1:
print('Client sent:', self.sock.recv(1024).decode())
self.so... |
|
shift838 |
Networking |
4 |
5,590 |
May-12-2017, 12:36 AM |
|
|
Thread: Simple TCP Server
Post: Simple TCP Server
I am very new to Python scripting.
I want to create a simple TCP server that will listen on a specified port and as soon as a connection is made it will display a message to the user connected over ... |
|
shift838 |
Networking |
4 |
5,590 |
May-11-2017, 02:58 AM |