|
@@ -1,9 +1,9 @@
|
|
import argparse
|
|
import argparse
|
|
import functools
|
|
import functools
|
|
import os.path
|
|
import os.path
|
|
-import subprocess
|
|
|
|
import sys
|
|
import sys
|
|
import warnings
|
|
import warnings
|
|
|
|
+import webbrowser
|
|
|
|
|
|
from qtpy import QT_VERSION
|
|
from qtpy import QT_VERSION
|
|
from qtpy import QtCore
|
|
from qtpy import QtCore
|
|
@@ -134,8 +134,6 @@ class MainWindow(QtWidgets.QMainWindow, WindowMixin):
|
|
self.dirty = False
|
|
self.dirty = False
|
|
|
|
|
|
self._noSelectionSlot = False
|
|
self._noSelectionSlot = False
|
|
- self.screencastViewer = "firefox"
|
|
|
|
- self.screencast = "screencast.ogv"
|
|
|
|
|
|
|
|
# Main widgets and related state.
|
|
# Main widgets and related state.
|
|
self.labelDialog = LabelDialog(parent=self, labels=labels,
|
|
self.labelDialog = LabelDialog(parent=self, labels=labels,
|
|
@@ -276,7 +274,7 @@ class MainWindow(QtWidgets.QMainWindow, WindowMixin):
|
|
icon='eye', tip='Show all polygons', enabled=False)
|
|
icon='eye', tip='Show all polygons', enabled=False)
|
|
|
|
|
|
help = action('&Tutorial', self.tutorial, icon='help',
|
|
help = action('&Tutorial', self.tutorial, icon='help',
|
|
- tip='Show screencast of introductory tutorial')
|
|
|
|
|
|
+ tip='Show tutorial page')
|
|
|
|
|
|
zoom = QtWidgets.QWidgetAction(self)
|
|
zoom = QtWidgets.QWidgetAction(self)
|
|
zoom.setDefaultWidget(self.zoomWidget)
|
|
zoom.setDefaultWidget(self.zoomWidget)
|
|
@@ -552,7 +550,8 @@ class MainWindow(QtWidgets.QMainWindow, WindowMixin):
|
|
# Callbacks
|
|
# Callbacks
|
|
|
|
|
|
def tutorial(self):
|
|
def tutorial(self):
|
|
- subprocess.Popen([self.screencastViewer, self.screencast])
|
|
|
|
|
|
+ url = 'https://github.com/wkentaro/labelme/tree/master/examples/tutorial' # NOQA
|
|
|
|
+ webbrowser.open(url)
|
|
|
|
|
|
def toggleDrawingSensitive(self, drawing=True):
|
|
def toggleDrawingSensitive(self, drawing=True):
|
|
"""Toggle drawing sensitive.
|
|
"""Toggle drawing sensitive.
|