FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Import Qt stuff via Qt instead of PyQtGraph · robot-python/finplot@9002ccb · GitHub

Commit 9002ccb

Browse files
committed
Import Qt stuff via Qt instead of PyQtGraph
1 parent 916f45d commit 9002ccb

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎finplot/examples/complicated.py‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@
2121
import json
2222
from math import nan
2323
import pandas as pd
24-
from PyQt5.QtWidgets import QComboBox, QCheckBox, QWidget
25-
from pyqtgraph import QtGui
24+
from PyQt5.QtWidgets import QComboBox, QCheckBox, QWidget, QGridLayout
2625
import pyqtgraph as pg
2726
import requests
2827
from time import time as now, sleep
@@ -380,7 +379,7 @@ def create_ctrl_panel(win):
380379
panel = QWidget(win)
381380
panel.move(100, 0)
382381
win.scene().addWidget(panel)
383-
layout = QtGui.QGridLayout(panel)
382+
layout = QGridLayout(panel)
384383

385384
panel.symbol = QComboBox(panel)
386385
[panel.symbol.addItem(i+'USDT') for i in 'BTC ETH XRP DOGE BNB SOL ADA LTC LINK DOT TRX BCH'.split()]

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL