# HG changeset patch
# User chewie@33b003aa-7bff-0310-803a-e67f0ece8222
# Date 1218061497 0
# Node ID 97d6946bd9175ef05d134fa1b099d7bea81436b2
# Parent d5658e6c34f5bcc39c9e3dbb611aa85bc460a664
- prepared files for new dir structure
diff -r d5658e6c34f5 -r 97d6946bd917 clients/pychan_demo/content/gui/absolute.xml
--- a/clients/pychan_demo/content/gui/absolute.xml Wed Aug 06 01:03:00 2008 +0000
+++ b/clients/pychan_demo/content/gui/absolute.xml Wed Aug 06 22:24:57 2008 +0000
@@ -1,10 +1,10 @@
-
+
diff -r d5658e6c34f5 -r 97d6946bd917 clients/pychan_demo/content/gui/all_widgets.xml
--- a/clients/pychan_demo/content/gui/all_widgets.xml Wed Aug 06 01:03:00 2008 +0000
+++ b/clients/pychan_demo/content/gui/all_widgets.xml Wed Aug 06 22:24:57 2008 +0000
@@ -39,8 +39,8 @@
-
-
+
+
diff -r d5658e6c34f5 -r 97d6946bd917 clients/pychan_demo/content/gui/demoapp.xml
--- a/clients/pychan_demo/content/gui/demoapp.xml Wed Aug 06 01:03:00 2008 +0000
+++ b/clients/pychan_demo/content/gui/demoapp.xml Wed Aug 06 22:24:57 2008 +0000
@@ -11,7 +11,7 @@
-
+
@@ -22,4 +22,4 @@
-
\ No newline at end of file
+
diff -r d5658e6c34f5 -r 97d6946bd917 clients/pychan_demo/content/gui/dynamic.xml
--- a/clients/pychan_demo/content/gui/dynamic.xml Wed Aug 06 01:03:00 2008 +0000
+++ b/clients/pychan_demo/content/gui/dynamic.xml Wed Aug 06 22:24:57 2008 +0000
@@ -3,11 +3,11 @@
-
+
-
\ No newline at end of file
+
diff -r d5658e6c34f5 -r 97d6946bd917 clients/pychan_demo/dynamic.py
--- a/clients/pychan_demo/dynamic.py Wed Aug 06 01:03:00 2008 +0000
+++ b/clients/pychan_demo/dynamic.py Wed Aug 06 22:24:57 2008 +0000
@@ -21,7 +21,7 @@
class DynamicExample(PyChanExample):
def __init__(self):
- super(DynamicExample,self).__init__('content/gui/dynamic.xml')
+ super(DynamicExample,self).__init__('gui/dynamic.xml')
def start(self):
self.widget = pychan.loadXML(self.xmlFile)
diff -r d5658e6c34f5 -r 97d6946bd917 clients/pychan_demo/pychan_test.py
--- a/clients/pychan_demo/pychan_test.py Wed Aug 06 01:03:00 2008 +0000
+++ b/clients/pychan_demo/pychan_test.py Wed Aug 06 22:24:57 2008 +0000
@@ -43,7 +43,7 @@
pychan.init(self.engine,debug=True)
pychan.setupModalExecution(self.mainLoop,self.breakFromMainLoop)
- self.gui = pychan.loadXML('content/gui/demoapp.xml')
+ self.gui = pychan.loadXML('gui/demoapp.xml')
eventMap = {
'creditsLink' : self.showCredits,
@@ -56,9 +56,9 @@
from styling import StylingExample
self.examples = {
- 'Absolute Positioning' : PyChanExample('content/gui/absolute.xml'),
+ 'Absolute Positioning' : PyChanExample('gui/absolute.xml'),
'Basic Styling' : StylingExample(),
- 'All Widgets' : PyChanExample('content/gui/all_widgets.xml'),
+ 'All Widgets' : PyChanExample('gui/all_widgets.xml'),
'Dynamic Widgets' : DynamicExample(),
}
self.demoList = self.gui.findChild(name='demoList')
@@ -77,7 +77,7 @@
self.currentExample.start()
def showCredits(self):
- print pychan.loadXML('content/gui/credits.xml').execute({ 'okButton' : "Yay!" })
+ print pychan.loadXML('gui/credits.xml').execute({ 'okButton' : "Yay!" })
class TestXMLApplication(basicapplication.ApplicationBase):
"""
diff -r d5658e6c34f5 -r 97d6946bd917 clients/pychan_demo/settings.py
--- a/clients/pychan_demo/settings.py Wed Aug 06 01:03:00 2008 +0000
+++ b/clients/pychan_demo/settings.py Wed Aug 06 22:24:57 2008 +0000
@@ -13,3 +13,6 @@
FontGlyphs = " abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.,!?-+/():;%&`'*#=[]\""
Font = 'content/fonts/samanata.ttf'
+
+WindowTitle = 'Pychan demo [FIFE Client]'
+WindowIcon = 'gui/pychan_logo.png'
diff -r d5658e6c34f5 -r 97d6946bd917 clients/pychan_demo/styling.py
--- a/clients/pychan_demo/styling.py Wed Aug 06 01:03:00 2008 +0000
+++ b/clients/pychan_demo/styling.py Wed Aug 06 22:24:57 2008 +0000
@@ -85,13 +85,13 @@
class StylingExample(PyChanExample):
def __init__(self):
- super(StylingExample,self).__init__('content/gui/styling.xml')
+ super(StylingExample,self).__init__('gui/styling.xml')
self.styles = ['default'] + STYLES.keys()
for name,style in STYLES.items():
pychan.manager.addStyle(name,style)
- pychan.loadFonts("content/fonts/samanata.fontdef")
+ pychan.loadFonts("fonts/samanata.fontdef")
def start(self):
self.styledCredits = None
@@ -114,7 +114,7 @@
style = self.styles[self.widget.collectData('styleList')]
if self.styledCredits:
self.styledCredits.hide()
- self.styledCredits = pychan.loadXML('content/gui/all_widgets.xml')
+ self.styledCredits = pychan.loadXML('gui/all_widgets.xml')
self.styledCredits.distributeInitialData({
'demoList' : dir(pychan),
'demoText' : pychan.__doc__