Python Forum
PyQt5 - import rext from other file - despearte for help
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PyQt5 - import rext from other file - despearte for help
#1
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???
Reply
#2
some of the code is missing. you need to post more than you have if you want help.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Import a file and show file name on qcombobox GMCobraz 1 613 Jul-02-2020, 01:38 PM
Last Post: GMCobraz
  [PyQt] Control a combobox from another python file PyQt5 prath 0 819 May-05-2020, 03:22 PM
Last Post: prath
  [PyQt] Cannot get PyQt5 to import DoDods 2 640 Apr-03-2020, 08:57 AM
Last Post: DoDods
  [PyQt] Import Excel file and use pandas WBPYTHON 2 2,282 Mar-22-2020, 11:28 AM
Last Post: WBPYTHON
  Huge code problems (buttons(PyQt5),PyQt5 Threads, Windows etc) ZenWoR 0 1,268 Apr-06-2019, 11:15 PM
Last Post: ZenWoR
  [PyQt] enter from py exported by pyqt5 designer to another py file royer14 0 1,284 Jun-29-2018, 01:45 AM
Last Post: royer14
  [PyQt5] [QWebEngineView] HTML file download nolme 0 3,548 May-08-2018, 08:41 PM
Last Post: nolme
  [PyQt] cant import progress bar from another py file swipis 7 5,342 Dec-18-2016, 10:41 AM
Last Post: swipis

Forum Jump:

User Panel Messages

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