introduced a base folder
This commit is contained in:
6
grum.py
6
grum.py
@ -3,9 +3,9 @@
|
|||||||
import sys
|
import sys
|
||||||
from PyQt5.QtWidgets import QApplication
|
from PyQt5.QtWidgets import QApplication
|
||||||
|
|
||||||
import ctrl_c
|
from grum import ctrl_c
|
||||||
import theme
|
from grum import theme
|
||||||
from mainwin import MainWindow
|
from grum.mainwin import MainWindow
|
||||||
|
|
||||||
|
|
||||||
app = QApplication(sys.argv)
|
app = QApplication(sys.argv)
|
||||||
|
0
grum/__init__.py
Normal file
0
grum/__init__.py
Normal file
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 5.7 KiB After Width: | Height: | Size: 5.7 KiB |
@ -1,5 +1,5 @@
|
|||||||
import numpy as np
|
import numpy as np
|
||||||
from plotdesc import PlotDescription
|
from .plotdesc import PlotDescription
|
||||||
|
|
||||||
|
|
||||||
X = np.arange(100) / 10
|
X = np.arange(100) / 10
|
@ -1,13 +1,13 @@
|
|||||||
from PyQt5.QtCore import Qt, pyqtSignal
|
from PyQt5.QtCore import Qt, pyqtSignal
|
||||||
from PyQt5.QtWidgets import QMainWindow, QSplitter
|
from PyQt5.QtWidgets import QMainWindow, QSplitter
|
||||||
|
|
||||||
import assets
|
from . import assets
|
||||||
from dictlist import DictList
|
from .dictlist import DictList
|
||||||
from mdiarea import MDIArea
|
from .mdiarea import MDIArea
|
||||||
from mdisubplot import MDISubPlot
|
from .mdisubplot import MDISubPlot
|
||||||
from rpcserverthread import RPCServerThread
|
from .rpcserverthread import RPCServerThread
|
||||||
from plotdesc import PlotDescription
|
from .plotdesc import PlotDescription
|
||||||
from exampledata import exampledata
|
from .exampledata import exampledata
|
||||||
|
|
||||||
|
|
||||||
class MainWindow(QMainWindow):
|
class MainWindow(QMainWindow):
|
@ -1,8 +1,8 @@
|
|||||||
from PyQt5.QtWidgets import QMdiArea, QAction
|
from PyQt5.QtWidgets import QMdiArea, QAction
|
||||||
from PyQt5.QtGui import QPainter
|
from PyQt5.QtGui import QPainter
|
||||||
|
|
||||||
import assets
|
from . import assets
|
||||||
from theme import MDI_BKG
|
from .theme import MDI_BKG
|
||||||
|
|
||||||
|
|
||||||
class MDIArea(QMdiArea):
|
class MDIArea(QMdiArea):
|
@ -1,7 +1,7 @@
|
|||||||
from PyQt5.QtCore import Qt
|
from PyQt5.QtCore import Qt
|
||||||
from PyQt5.QtWidgets import QMdiSubWindow
|
from PyQt5.QtWidgets import QMdiSubWindow
|
||||||
import pyqtgraph as pg
|
import pyqtgraph as pg
|
||||||
import assets
|
from . import assets
|
||||||
|
|
||||||
|
|
||||||
class MDISubPlot(QMdiSubWindow):
|
class MDISubPlot(QMdiSubWindow):
|
@ -1,4 +1,4 @@
|
|||||||
from theme import pg_plot_style
|
from .theme import pg_plot_style
|
||||||
|
|
||||||
|
|
||||||
class PlotDescription:
|
class PlotDescription:
|
@ -1,6 +1,6 @@
|
|||||||
import atexit
|
import atexit
|
||||||
from threading import Thread
|
from threading import Thread
|
||||||
from rpcserver import RPCServer
|
from .rpcserver import RPCServer
|
||||||
|
|
||||||
|
|
||||||
class RPCServerThread(Thread):
|
class RPCServerThread(Thread):
|
Reference in New Issue
Block a user