Commit dcfbf1f7 authored by Benjamin Jakimow's avatar Benjamin Jakimow
Browse files

added screenshots.py

parent 108c50a8
......@@ -9,6 +9,8 @@ doc/build/
doc/build/*
qgisresources/
qgisresources/*
screenshots/
screenshots/*
example/*.aux.xml
timeseriesviewer/ui/tmp.ui
.*
......
#
from timeseriesviewer.utils import *
from timeseriesviewer.main import TimeSeriesViewer
from timeseriesviewer import DIR_REPO, DIR_QGIS_RESOURCES
DIR_SCREENSHOTS = jp(DIR_REPO, 'screenshots')
os.makedirs(DIR_SCREENSHOTS, exist_ok=True)
app = initQgisApplication(qgisResourceDir=DIR_QGIS_RESOURCES)
TS = TimeSeriesViewer(None)
TS.show()
TS.loadExampleTimeSeries()
app.exec_()
......@@ -676,6 +676,9 @@ class TimeSeriesViewer(QgisInterface, QObject):
"""Removes the plugin menu item and icon """
self.iface.removeToolBarIcon(self.action)
def show(self):
self.ui.show()
def run(self):
#QApplication.processEvents()
self.ui.show()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment