Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: adding numbers in a list
Post: adding numbers in a list
what im looking to do is add 25 to elements in a list but add 25 plus the last number
example
list = [0,0,0,0]
i want the output to be
list = [0,25,50,75] |
|
Nickd12 |
General Coding Help |
2 |
2,209 |
Jan-15-2021, 03:59 AM |
|
|
Thread: pyqt5 layout
Post: RE: pyqt5 layout
@deanhystad i was trying to figure out how to display it in the mainwindow class sorry im still trying to figure pyqt out and its hard to find information online with using python. Im actually messing... |
|
Nickd12 |
GUI |
8 |
3,518 |
Jan-13-2021, 04:07 AM |
|
|
Thread: pyqt5 layout
Post: RE: pyqt5 layout
also @deanhystad thank you for the suggestions on pyqt im still learning how to work with it i have never made a gui before so i appreciate it |
|
Nickd12 |
GUI |
8 |
3,518 |
Jan-12-2021, 11:26 PM |
|
|
Thread: pyqt5 layout
Post: RE: pyqt5 layout
@Alex_Erfurt thank you for reply now say i wanted to take that class and move it as a whole that way the date and time would stay in positions relative to one another but lets say i wanted to move the... |
|
Nickd12 |
GUI |
8 |
3,518 |
Jan-12-2021, 11:20 PM |
|
|
Thread: pyqt5 layout
Post: pyqt5 layout
for anyone that knows about pyqt5 how can i set my BuildDateTime class in a box to group it together then place it in the Qmainwindow the window class to as a group that way if i wanted to move the cl... |
|
Nickd12 |
GUI |
8 |
3,518 |
Jan-12-2021, 03:06 AM |
|
|
Thread: pyqt5
Post: pyqt5
is there any way to use timer object to set text in pyqt5 with out creating another function to get the time to upsate or is there any alternative way to update the text set in a label
import sys
... |
|
Nickd12 |
GUI |
2 |
2,190 |
Jan-11-2021, 10:18 PM |
|
|
Thread: returning values in for loop
Post: returning values in for loop
in my example i would like to return the whole list with it being in a function instead i am only getting 1 as a return.
However when its not in a function i will get the full list. So my question is ... |
|
Nickd12 |
General Coding Help |
4 |
12,272 |
Dec-16-2020, 10:56 PM |
|
|
Thread: input timer
Post: RE: input timer
dose anyone know why i am getting this error when i let it timeout?
Fatal Python error: could not acquire lock for <_io.BufferedReader name='<stdin>'> at interpreter shutdown, possibly du... |
|
Nickd12 |
General Coding Help |
13 |
4,868 |
Dec-08-2020, 01:55 AM |
|
|
Thread: input interrupt
Post: input interrupt
how can i get this to just interrupt the input and continue down the while true loop. instead if there is no input after 3 seconds it end the program.
class FiveSec(threading.Thread):
def restart... |
|
Nickd12 |
General Coding Help |
1 |
4,276 |
Dec-07-2020, 09:52 PM |
|
|
Thread: input timer
Post: RE: input timer
|
Nickd12 |
General Coding Help |
13 |
4,868 |
Dec-07-2020, 08:05 PM |
|
|
Thread: input timer
Post: RE: input timer
@bowlofred im still having trouble with this i have been working on it for almost two weeks and still cant figure it out is there anyway you could pm me and help me work out the problem? |
|
Nickd12 |
General Coding Help |
13 |
4,868 |
Dec-07-2020, 02:24 AM |
|
|
Thread: input timer
Post: RE: input timer
so ive been doing some research is the only way to do it with sys.stdin |
|
Nickd12 |
General Coding Help |
13 |
4,868 |
Nov-23-2020, 09:50 PM |
|
|
Thread: input timer
Post: RE: input timer
I think i get what you are saying about the multithreaded approach and I like it. im going to do some research on it. You have given me some stuff to thinking about and definitely a good starting poin... |
|
Nickd12 |
General Coding Help |
13 |
4,868 |
Nov-19-2020, 10:03 PM |
|
|
Thread: input timer
Post: RE: input timer
@jefsummers the link to my code is right above your comment. the code is on a different post already made with more detail on what I'm trying to do I'm re asking it maybe i posted it at a bad time i g... |
|
Nickd12 |
General Coding Help |
13 |
4,868 |
Nov-19-2020, 02:51 AM |
|
|
Thread: Noob question about lists
Post: RE: Noob question about lists
you want something like this
list_a = [1, 2, 3, 4, 5]
list_b = [i for i in list_a]
list_b.pop()
print("list_a is", list_a)
print("list_b is", list_b) |
|
Nickd12 |
General Coding Help |
4 |
2,882 |
Nov-19-2020, 01:45 AM |
|
|
Thread: Noob question about lists
Post: RE: Noob question about lists
because list_b = list_a you did not make a new list you just renamed it |
|
Nickd12 |
General Coding Help |
4 |
2,882 |
Nov-19-2020, 01:40 AM |
|
|
Thread: input timer
Post: RE: input timer
ill post a link of something i had posted the problem is if the time runs out it does not reset the loop properly so i have tired other ways but they all have failed
https://python-forum.io/Thread-i... |
|
Nickd12 |
General Coding Help |
13 |
4,868 |
Nov-19-2020, 01:20 AM |
|
|
Thread: input timer
Post: input timer
can someone help me with an input timer I have tried 100 different ways to make it work and im at a loss. |
|
Nickd12 |
General Coding Help |
13 |
4,868 |
Nov-18-2020, 11:29 PM |
|
|
Thread: input timer
Post: input timer
So I'm revising wake word and input for a project I'm working on I made this sample text so you can see what I'm trying to do basically two ways of waking it up.
The First Way:
you can say wake hi wi... |
|
Nickd12 |
General Coding Help |
0 |
1,674 |
Nov-18-2020, 12:31 AM |
|
|
Thread: getting information from a text file
Post: RE: getting information from a text file
this is the error
print(data['text_to_speech']['api_key'])
TypeError: list indices must be integers or slices, not str
that is the full code |
|
Nickd12 |
General Coding Help |
8 |
3,225 |
Nov-17-2020, 01:05 AM |