mirror of
https://github.com/brmlab/edubrm.git
synced 2025-08-03 15:23:36 +02:00
start writing debugmodule
This commit is contained in:
parent
e809984eb2
commit
4b73d98c11
12 changed files with 58 additions and 24 deletions
1
software/modules/.gitignore
vendored
1
software/modules/.gitignore
vendored
|
@ -1 +1,2 @@
|
|||
*.pyc
|
||||
*Ui.py
|
||||
|
|
|
@ -2,11 +2,10 @@ from module import Module
|
|||
|
||||
class ModuleA(Module):
|
||||
|
||||
title = "Acko"
|
||||
title = 'Acko'
|
||||
|
||||
def setup(self, area):
|
||||
print 'setup A'
|
||||
print area
|
||||
|
||||
def run(self):
|
||||
print 'run A'
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 2.5 KiB |
|
@ -1,12 +0,0 @@
|
|||
from module import Module
|
||||
|
||||
class ModuleB(Module):
|
||||
|
||||
title = "Bcko"
|
||||
|
||||
def setup(self, area):
|
||||
print 'setup B'
|
||||
print area
|
||||
|
||||
def run(self):
|
||||
print 'run B'
|
BIN
software/modules/ModuleDebug.png
Normal file
BIN
software/modules/ModuleDebug.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.7 KiB |
14
software/modules/ModuleDebug.py
Normal file
14
software/modules/ModuleDebug.py
Normal file
|
@ -0,0 +1,14 @@
|
|||
from module import Module
|
||||
from ModuleDebugUi import Ui_ModuleDebug
|
||||
|
||||
class ModuleDebug(Module):
|
||||
|
||||
title = 'Debug'
|
||||
|
||||
def setup(self, area):
|
||||
print 'setup Debug'
|
||||
self.ui = Ui_ModuleDebug()
|
||||
self.ui.setupUi(area)
|
||||
|
||||
def run(self):
|
||||
print 'run Debug'
|
29
software/modules/ModuleDebug.ui
Normal file
29
software/modules/ModuleDebug.ui
Normal file
|
@ -0,0 +1,29 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>ModuleDebug</class>
|
||||
<widget class="QWidget" name="ModuleDebug">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>781</width>
|
||||
<height>531</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Form</string>
|
||||
</property>
|
||||
<widget class="QCalendarWidget" name="calendarWidget">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>10</x>
|
||||
<y>10</y>
|
||||
<width>761</width>
|
||||
<height>511</height>
|
||||
</rect>
|
||||
</property>
|
||||
</widget>
|
||||
</widget>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
|
@ -1,5 +1,5 @@
|
|||
from ModuleA import ModuleA
|
||||
from ModuleB import ModuleB
|
||||
from ModuleDebug import ModuleDebug
|
||||
|
||||
def list():
|
||||
return [ModuleA(),ModuleB()]
|
||||
return [ModuleDebug(),ModuleA()]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue