Skip to content
Snippets Groups Projects
Commit dcfbf1f7 authored by Benjamin Jakimow's avatar Benjamin Jakimow
Browse files

added screenshots.py

parent 108c50a8
No related branches found
No related tags found
No related merge requests found
...@@ -9,6 +9,8 @@ doc/build/ ...@@ -9,6 +9,8 @@ doc/build/
doc/build/* doc/build/*
qgisresources/ qgisresources/
qgisresources/* qgisresources/*
screenshots/
screenshots/*
example/*.aux.xml example/*.aux.xml
timeseriesviewer/ui/tmp.ui 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): ...@@ -676,6 +676,9 @@ class TimeSeriesViewer(QgisInterface, QObject):
"""Removes the plugin menu item and icon """ """Removes the plugin menu item and icon """
self.iface.removeToolBarIcon(self.action) self.iface.removeToolBarIcon(self.action)
def show(self):
self.ui.show()
def run(self): def run(self):
#QApplication.processEvents() #QApplication.processEvents()
self.ui.show() self.ui.show()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment