Python Forum

Full Version: PyQt5 - import rext from other file - despearte for help
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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

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)
this is the fh.py relavant code:
 q_le = QtWidgets.QLineEdit(w)
    q_le.resize(500, 96)
    q_le.move (400, 700)
    q_le.setText(
what do i need to do so the generated numbers will be shown in the qlineedit???
some of the code is missing. you need to post more than you have if you want help.