Package pyforms :: Module Controls |
[hide private]
[frames] | no frames]

# Source Code for Module pyforms.Controls

     1  from pyforms import conf
     2
     3
     4  if conf.PYFORMS_MODE in ['GUI','GUI-OPENCSP']:
     5
     6          from pyforms.gui.Controls.ControlBase                   import ControlBase
     7          from pyforms.gui.Controls.ControlText                   import ControlText
     8          from pyforms.gui.Controls.ControlBoundingSlider import ControlBoundingSlider
     9          from pyforms.gui.Controls.ControlButton                 import ControlButton
    10          from pyforms.gui.Controls.ControlCheckBoxList   import ControlCheckBoxList
    11          from pyforms.gui.Controls.ControlCheckBox               import ControlCheckBox
    12          from pyforms.gui.Controls.ControlCombo                  import ControlCombo
    13          from pyforms.gui.Controls.ControlDir                    import ControlDir
    14          from pyforms.gui.Controls.ControlDockWidget     import ControlDockWidget
    15          from pyforms.gui.Controls.ControlEmptyWidget    import ControlEmptyWidget
    16          from pyforms.gui.Controls.ControlFile                   import ControlFile
    17          from pyforms.gui.Controls.ControlFilesTree              import ControlFilesTree
    18          from pyforms.gui.Controls.ControlLabel                  import ControlLabel
    19          from pyforms.gui.Controls.ControlList                   import ControlList
    20          from pyforms.gui.Controls.ControlMdiArea                import ControlMdiArea
    21          from pyforms.gui.Controls.ControlNumber                 import ControlNumber
    22          try:
    23                  from pyforms.gui.Controls.ControlOpenGL                 import ControlOpenGL
    24                  from pyforms.gui.Controls.ControlImage                  import ControlImage
    25                  from pyforms.gui.Controls.ControlPlayer.ControlPlayer   import ControlPlayer
    26          except:
    27                  print("GL widgets not working")
    28
    29          from pyforms.gui.Controls.ControlProgress               import ControlProgress
    30          from pyforms.gui.Controls.ControlSlider                 import ControlSlider
    31          from pyforms.gui.Controls.ControlTextArea               import ControlTextArea
    32          from pyforms.gui.Controls.ControlToolBox                import ControlToolBox
    33          from pyforms.gui.Controls.ControlTree                   import ControlTree
    34          from pyforms.gui.Controls.ControlTreeView               import ControlTreeView
    35          from pyforms.gui.Controls.ControlVisVis                 import ControlVisVis
    36          from pyforms.gui.Controls.ControlVisVisVolume   import ControlVisVisVolume
    37          from pyforms.gui.Controls.ControlEventTimeline.ControlEventTimeline     import ControlEventTimeline
    38
    39
    40  elif conf.PYFORMS_MODE in ['TERMINAL']:
    41
    42          from pyforms.terminal.Controls.ControlBase                      import ControlBase
    43          from pyforms.terminal.Controls.ControlText                      import ControlText
    44          from pyforms.terminal.Controls.ControlButton            import ControlButton
    45          from pyforms.terminal.Controls.ControlCheckBox          import ControlCheckBox
    46          from pyforms.terminal.Controls.ControlCombo             import ControlCombo
    47          from pyforms.terminal.Controls.ControlFile                      import ControlFile
    48          from pyforms.terminal.Controls.ControlDir                       import ControlDir
    49          from pyforms.terminal.Controls.ControlImage             import ControlImage
    50          from pyforms.terminal.Controls.ControlSlider            import ControlSlider
    51          from pyforms.terminal.Controls.ControlPlayer            import ControlPlayer
    52          from pyforms.terminal.Controls.ControlProgress          import ControlProgress
    53
    54  elif conf.PYFORMS_MODE in ['WEB']:
    55
    56          from pyforms.web.Controls.ControlBase                   import ControlBase
    57          from pyforms.web.Controls.ControlText                   import ControlText
    58          from pyforms.web.Controls.ControlButton                 import ControlButton
    59          from pyforms.web.Controls.ControlCheckBox               import ControlCheckBox
    60          from pyforms.web.Controls.ControlCombo                  import ControlCombo
    61          from pyforms.web.Controls.ControlDir                    import ControlDir
    62          from pyforms.web.Controls.ControlFile                   import ControlFile
    63          from pyforms.web.Controls.ControlImage                  import ControlImage
    64          from pyforms.web.Controls.ControlSlider                 import ControlSlider
    65          from pyforms.web.Controls.ControlPlayer                 import ControlPlayer
    66          from pyforms.web.Controls.ControlProgress               import ControlProgress
    67