From: Digital X. <dig...@us...> - 2007-04-21 23:03:41
|
Update of /cvsroot/openrpg/openrpg1/orpg/gametree/nodehandlers In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv4258/orpg/gametree/nodehandlers Modified Files: Tag: BRANCH-1-7-1 forms.py Log Message: Fixed a bug that could cause a char sheet not to open if it contained an images, that didnt exist Index: forms.py =================================================================== RCS file: /cvsroot/openrpg/openrpg1/orpg/gametree/nodehandlers/forms.py,v retrieving revision 1.50 retrieving revision 1.50.2.1 diff -C2 -d -r1.50 -r1.50.2.1 *** forms.py 15 Nov 2006 12:11:24 -0000 1.50 --- forms.py 21 Apr 2007 23:03:40 -0000 1.50.2.1 *************** *** 637,641 **** opts = handler.get_options() ! self.listbox = wx.ListBox(self,F_LIST,choices=opts) opts = ['Drop Down', 'List Box', 'Radio Box', 'Check List'] self.type_radios = wx.RadioBox(self,F_TYPE,"List Type",choices=opts) --- 637,641 ---- opts = handler.get_options() ! self.listbox = wx.ListBox(self, F_LIST, choices=opts, style=wx.LB_HSCROLL|wx.LB_SINGLE|wx.LB_NEEDED_SB) opts = ['Drop Down', 'List Box', 'Radio Box', 'Check List'] self.type_radios = wx.RadioBox(self,F_TYPE,"List Type",choices=opts) *************** *** 816,820 **** img = img_helper().load_url(self.link.getAttribute("href")) #print img ! return wx.StaticBitmap(parent,-1,img,size= wx.Size(img.GetWidth(),img.GetHeight())) def tohtml(self): --- 816,822 ---- img = img_helper().load_url(self.link.getAttribute("href")) #print img ! if not img is None: ! return wx.StaticBitmap(parent,-1,img,size= wx.Size(img.GetWidth(),img.GetHeight())) ! return wx.EmptyBitmap(1, 1) def tohtml(self): |