comparison orpg/tools/orpg_log.py @ 195:b633f4c64aae alpha

Traipse Alpha 'OpenRPG' {100219-00} Traipse is a distribution of OpenRPG that is designed to be easy to setup and go. Traipse also makes it easy for developers to work on code without fear of sacrifice. 'Ornery-Orc' continues the trend of 'Grumpy' and adds fixes to the code. 'Ornery-Orc's main goal is to offer more advanced features and enhance the productivity of the user. Update Summary (Patch-2) New Features: New Namespace method with two new syntaxes Fixes: Fix to Server GUI startup errors Fix to Server GUI Rooms tab updating Fix to Chat and Settings if non existant die roller is picked Fix to Dieroller and .open() used with .vs(). Successes are correctly calculated Fix to Alias Lib's Export to Tree, Open, Save features Fix to alias node, now works properly Fix to Splitter node, minor GUI cleanup
author sirebral
date Sat, 24 Apr 2010 08:37:20 -0500
parents 2ffc5de126c8
children 40316be08270
comparison
equal deleted inserted replaced
182:4b2884f29a72 195:b633f4c64aae
19 # 19 #
20 # File: orpg_log.py 20 # File: orpg_log.py
21 # Author: Dj Gilcrease 21 # Author: Dj Gilcrease
22 # Maintainer: 22 # Maintainer:
23 # Version: 23 # Version:
24 # $Id: orpg_log.py,v 1.9 2007/05/06 16:43:02 digitalxero Exp $ 24 # $Id: orpg_log.py,v Traipse 'Ornery-Orc' prof.ebral Exp $
25 # 25 #
26 # Description: classes for orpg log messages 26 # Description: classes for orpg log messages
27 # 27 #
28 28
29 from __future__ import with_statement 29 from __future__ import with_statement
100 self.console = wx.TextCtrl(self, -1, style=wx.TE_MULTILINE | wx.TE_READONLY) 100 self.console = wx.TextCtrl(self, -1, style=wx.TE_MULTILINE | wx.TE_READONLY)
101 self.bt_clear = wx.Button(self, wx.ID_CLEAR) 101 self.bt_clear = wx.Button(self, wx.ID_CLEAR)
102 self.report = wx.Button(self, wx.ID_ANY, 'Bug Report') 102 self.report = wx.Button(self, wx.ID_ANY, 'Bug Report')
103 sizer = wx.GridBagSizer(hgap=1, vgap=1) 103 sizer = wx.GridBagSizer(hgap=1, vgap=1)
104 sizer.Add(self.console, (0,0), span=(1,2), flag=wx.EXPAND) 104 sizer.Add(self.console, (0,0), span=(1,2), flag=wx.EXPAND)
105 sizer.Add(self.bt_clear, (1,0), flag=wx.ALIGN_LEFT) 105 sizer.Add(self.bt_clear, (1,0), span=(1,1), flag=wx.ALIGN_LEFT)
106 sizer.Add(self.report, (1,1), flag=wx.ALIGN_LEFT) 106 sizer.Add(self.report, (1,1), span=(1,1), flag=wx.ALIGN_RIGHT|wx.EXPAND)
107 sizer.AddGrowableCol(0) 107 sizer.AddGrowableCol(0)
108 sizer.AddGrowableRow(0) 108 sizer.AddGrowableRow(0)
109 self.SetSizer(sizer) 109 self.SetSizer(sizer)
110 #self.Layout()
110 self.SetAutoLayout(True) 111 self.SetAutoLayout(True)
111 self.SetSize((450, 175)) 112 self.SetSize((450, 275))
113 self.SetMinSize((450, 275))
112 self.Bind(wx.EVT_CLOSE, self.Min) 114 self.Bind(wx.EVT_CLOSE, self.Min)
113 self.Bind(wx.EVT_BUTTON, self.clear, self.bt_clear) 115 self.Bind(wx.EVT_BUTTON, self.clear, self.bt_clear)
114 self.Bind(wx.EVT_BUTTON, self.bug_report, self.report) 116 self.Bind(wx.EVT_BUTTON, self.bug_report, self.report)
115 self.Min(None) 117 self.Min(None)
116 #sys.stdout = Term2Win() 118 #sys.stdout = Term2Win()