May-25-2018, 08:24 PM
Hello!
im stuck for hours with a one simple task:
i need that the numbers that are generated from gps.py show in the fh.py
this is the gps.py
this is the fh.py relavant code:
what do i need to do so the generated numbers will be shown in the qlineedit???
im stuck for hours with a one simple task:
i need that the numbers that are generated from gps.py show in the fh.py
this is the gps.py
1 2 3 4 5 6 7 8 9 |
from random import uniform import time def runscript(): for gps in range ( 0 , 10 ): gps = round (uniform( 31.852863 , 31.853108 ), ( 6 )) time.sleep( 2 ) return (gps) |
1 2 3 4 |
q_le = QtWidgets.QLineEdit(w) q_le.resize( 500 , 96 ) q_le.move ( 400 , 700 ) q_le.setText( |