start writing debugmodule

This commit is contained in:
Pavol Rusnak 2011-04-15 00:25:29 +02:00
parent e809984eb2
commit 4b73d98c11
12 changed files with 58 additions and 24 deletions

View file

@ -1 +1,2 @@
*.pyc
*Ui.py

View file

@ -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

View file

@ -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'

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

View 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'

View 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>

View file

@ -1,5 +1,5 @@
from ModuleA import ModuleA
from ModuleB import ModuleB
from ModuleDebug import ModuleDebug
def list():
return [ModuleA(),ModuleB()]
return [ModuleDebug(),ModuleA()]