diff orpg/main.py @ 59:5aff3ef1ae46 ornery-dev

New dev branch for Ornery Orc. Adds CSS styling to chat messages. Updates Update Manager to 0.7.1. Fixes problem with gametree and names. Adds a multi- line text entry, grows as you type more lines; not reactive to Shift-Enter, yet.
author sirebral
date Tue, 11 Aug 2009 17:48:30 -0500
parents 5d89a6eaf492
children 3b2cfa13b610
line wrap: on
line diff
--- a/orpg/main.py	Sat Aug 08 00:25:33 2009 -0500
+++ b/orpg/main.py	Tue Aug 11 17:48:30 2009 -0500
@@ -638,7 +638,8 @@
 
         #Update Manager
         self.manifest = manifest.ManifestChanges()
-        self.updateMana = upmana.updatemana.updaterFrame(self, "OpenRPG Update Manager Beta 0.6.7", open_rpg, self.manifest, True)
+        self.updateMana = upmana.updatemana.updaterFrame(self, 
+            "OpenRPG Update Manager Beta 0.7.1", open_rpg, self.manifest, True)
         self.log.log("Menu Created", ORPG_DEBUG)
         h = int(xml_dom.getAttribute("height"))
         w = int(xml_dom.getAttribute("width"))
@@ -660,8 +661,7 @@
         wndinfo.Hide()
         self._mgr.AddPane(self.sound_player, wndinfo)
         children = xml_dom._get_childNodes()
-        for c in children:
-            self.build_window(c, self)
+        for c in children: self.build_window(c, self)
 
         # status window
         self.status = status_bar(self)
@@ -724,10 +724,8 @@
         self.mainmenu.Insert(3, self.windowsmenu, 'Windows')
         self.log.log("Windows Menu Done", ORPG_DEBUG)
         self._mgr.Update()
-        if wx.VERSION_STRING > "2.8":
-            self.Bind(AUI.EVT_AUI_PANE_CLOSE, self.onPaneClose)
-        else:
-            self.Bind(AUI.EVT_AUI_PANECLOSE, self.onPaneClose)
+        if wx.VERSION_STRING > "2.8": self.Bind(AUI.EVT_AUI_PANE_CLOSE, self.onPaneClose)
+        else: self.Bind(AUI.EVT_AUI_PANECLOSE, self.onPaneClose)
         self.log.log("AUI Bindings Done", ORPG_DEBUG)
 
         #Load the layout if one exists