Repository navigation
Expand file tree
/
Copy pathcontrols.py
More file actions
109 lines (97 loc) · 5.47 KB
/
Copy pathcontrols.py
File metadata and controls
109 lines (97 loc) · 5.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
from pyforms import conf
if conf.PYFORMS_MODE=='GUI':
import logging, traceback; logger=logging.getLogger(__file__)
from pyforms.gui.controls.ControlBase import ControlBase
from pyforms.gui.controls.ControlText import ControlText
from pyforms.gui.controls.ControlBoundingSlider import ControlBoundingSlider
from pyforms.gui.controls.ControlButton import ControlButton
from pyforms.gui.controls.ControlToolButton import ControlToolButton
from pyforms.gui.controls.ControlCheckBoxList import ControlCheckBoxList
from pyforms.gui.controls.ControlCheckBox import ControlCheckBox
from pyforms.gui.controls.ControlCombo import ControlCombo
from pyforms.gui.controls.ControlDir import ControlDir
from pyforms.gui.controls.ControlDockWidget import ControlDockWidget
from pyforms.gui.controls.ControlEmptyWidget import ControlEmptyWidget
from pyforms.gui.controls.ControlFile import ControlFile
from pyforms.gui.controls.ControlFilesTree import ControlFilesTree
from pyforms.gui.controls.ControlLabel import ControlLabel
from pyforms.gui.controls.ControlList import ControlList
from pyforms.gui.controls.ControlMdiArea import ControlMdiArea
from pyforms.gui.controls.ControlNumber import ControlNumber
from pyforms.gui.controls.ControlProgress import ControlProgress
from pyforms.gui.controls.ControlSlider import ControlSlider
from pyforms.gui.controls.ControlTextArea import ControlTextArea
from pyforms.gui.controls.ControlToolBox import ControlToolBox
from pyforms.gui.controls.ControlTableView import ControlTableView
from pyforms.gui.controls.ControlTree import ControlTree
from pyforms.gui.controls.ControlTreeView import ControlTreeView
from pyforms.gui.controls.control_event_timeline.ControlEventTimeline import ControlEventTimeline
from pyforms.gui.controls.control_events_graph.ControlEventsGraph import ControlEventsGraph
if conf.PYFORMS_MATPLOTLIB_ENABLED:
try:
from pyforms.gui.controls.ControlMatplotlib import ControlMatplotlib
except Exception as e:
logger.warning("Matplot lib not installed or not working properly")
logger.error(e, exc_info=True)
if conf.PYFORMS_WEB_ENABLED:
try:
from pyforms.gui.controls.ControlWeb import ControlWeb
except Exception as e:
logger.warning("QtWebKit lib not installed or not working properly")
logger.error(e, exc_info=True)
if conf.PYFORMS_GL_ENABLED:
try:
from pyforms.gui.controls.ControlOpenGL import ControlOpenGL
from pyforms.gui.controls.ControlImage import ControlImage
from pyforms.gui.controls.control_player.ControlPlayer import ControlPlayer
except Exception as e:
logger.warning("GL widgets or Opencv is not installed")
logger.error(e, exc_info=True)
if conf.PYFORMS_VISVIS_ENABLED:
try:
from pyforms.gui.controls.ControlVisVis import ControlVisVis
from pyforms.gui.controls.ControlVisVisVolume import ControlVisVisVolume
except Exception as e:
logger.warning("VisVis not installed")
logger.error(e, exc_info=True)
if conf.PYFORMS_QSCINTILLA_ENABLED:
try:
from pyforms.gui.controls.ControlCodeEditor import ControlCodeEditor
except Exception as e:
logger.warning("QScintilla2 not installed")
logger.error(e, exc_info=True)
elif conf.PYFORMS_MODE=='TERMINAL':
from pyforms.terminal.controls.ControlBase import ControlBase
from pyforms.terminal.controls.ControlBoundingSlider import ControlBoundingSlider
from pyforms.terminal.controls.ControlText import ControlText
from pyforms.terminal.controls.ControlButton import ControlButton
from pyforms.terminal.controls.ControlCheckBox import ControlCheckBox
from pyforms.terminal.controls.ControlCombo import ControlCombo
from pyforms.terminal.controls.ControlFile import ControlFile
from pyforms.terminal.controls.ControlDir import ControlDir
from pyforms.terminal.controls.ControlImage import ControlImage
from pyforms.terminal.controls.ControlSlider import ControlSlider
from pyforms.terminal.controls.ControlPlayer import ControlPlayer
from pyforms.terminal.controls.ControlNumber import ControlNumber
from pyforms.terminal.controls.ControlProgress import ControlProgress
elif conf.PYFORMS_MODE=='WEB':
from pyforms_web.web.controls.ControlBase import ControlBase
from pyforms_web.web.controls.ControlText import ControlText
from pyforms_web.web.controls.ControlBoundingSlider import ControlBoundingSlider
from pyforms_web.web.controls.ControlDate import ControlDate
from pyforms_web.web.controls.ControlButton import ControlButton
from pyforms_web.web.controls.ControlCheckBox import ControlCheckBox
from pyforms_web.web.controls.ControlCombo import ControlCombo
from pyforms_web.web.controls.ControlDir import ControlDir
from pyforms_web.web.controls.ControlFile import ControlFile
from pyforms_web.web.controls.ControlImage import ControlImage
from pyforms_web.web.controls.ControlSlider import ControlSlider
from pyforms_web.web.controls.ControlPlayer import ControlPlayer
from pyforms_web.web.controls.ControlProgress import ControlProgress
from pyforms_web.web.controls.ControlVisVis import ControlVisVis
from pyforms_web.web.controls.ControlList import ControlList
from pyforms_web.web.controls.ControlLabel import ControlLabel
from pyforms_web.web.controls.ControlTimeout import ControlTimeout
from pyforms_web.web.controls.ControlEmptyWidget import ControlEmptyWidget
from pyforms_web.web.controls.ControlWorkflow import ControlWorkflow
from pyforms_web.web.controls.ControlPieChart import ControlPieChart