MCPcopy Create free account
hub / github.com/UmSenhorQualquer/pyforms / __init__

Method __init__

tutorials/4.MdiApplication/Core/BaseWindow.py:15–42  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

13
14
15 def __init__(self):
16 super(BaseWindow, self).__init__('Test')
17
18 #Definition of the forms fields
19 self._mdiArea = ControlMdiArea()
20
21 self._textField = ControlText("Example")
22 self._projectTree = ControlDockWidget('Project tree', side=ControlDockWidget.SIDE_RIGHT)
23 self._details = ControlDockWidget('Details', side=ControlDockWidget.SIDE_RIGHT)
24 self._addWindow = ControlButton('Add window')
25
26 self._formset = [ '_addWindow','_textField', '_mdiArea']
27
28 self._details.value = SimpleExample1()
29
30
31 #self._mdiArea.showCloseButton = False
32 self._addWindow.value = self.__addWindow
33
34 self.mainmenu.append(
35 { 'File': [
36 {'Save as': self.saveWindow},
37 {'Open as': self.loadWindow},
38 '-',
39 {'Exit': self.__exit},
40 ]
41 }
42 )
43
44 def __addWindow(self):
45 self._simple = SimpleExample1();

Callers

nothing calls this directly

Calls 5

ControlMdiAreaClass · 0.90
ControlTextClass · 0.90
ControlDockWidgetClass · 0.90
ControlButtonClass · 0.90
SimpleExample1Class · 0.90

Tested by

no test coverage detected