Hmmm...it does work on my XP box but not my Vista (Home Premium) box wx._core.PyAssertionError: C++ assertion "m_created" failed at ..\..\src\generic\grid.cpp(4470) in wxGrid::SetSelectionMode(): Called wxGrid::SetSelectionMode() before calling CreateGrid()
File "C:\pyproject\SearchMfrm.py", line 688, in <module> app.start() File "c:\dabo\dabo\dApp.py", line 322, in start self.setup() File "c:\dabo\dabo\dApp.py", line 287, in setup self.initUIApp() File "c:\dabo\dabo\dApp.py", line 314, in initUIApp self.uiApp.setup() File "c:\dabo\dabo\ui\uiwx\uiApp.py", line 304, in setup frm = self.dApp.MainForm = mfc() File "c:\dabo\dabo\ui\uiwx\dForm.py", line 896, in __init__ BaseForm.__init__(self, preClass, parent, properties, attProperties, *args, **kwargs) File "c:\dabo\dabo\ui\uiwx\dForm.py", line 44, in __init__ fm.dFormMixin.__init__(self, preClass, parent, properties, attProperties, *args, **kwargs) File "c:\dabo\dabo\ui\uiwx\dFormMixin.py", line 81, in __init__ attProperties, *args, **kwargs) File "c:\dabo\dabo\ui\uiwx\dPemMixin.py", line 184, in __init__ self._afterInit() File "c:\dabo\dabo\ui\uiwx\dForm.py", line 70, in _afterInit super(BaseForm, self)._afterInit() File "c:\dabo\dabo\ui\uiwx\dFormMixin.py", line 141, in _afterInit super(dFormMixin, self)._afterInit() File "c:\dabo\dabo\ui\uiwx\dPemMixin.py", line 318, in _afterInit self.afterInit() File "C:\pyproject\SearchMfrm.py", line 357, in afterInit self.Sizer.append1x(MainPanelFrames(self)) File "c:\dabo\dabo\ui\uiwx\dPanel.py", line 185, in __init__ attProperties=attProperties, *args, **kwargs) File "c:\dabo\dabo\ui\uiwx\dPanel.py", line 164, in __init__ properties=properties, attProperties=attProperties, *args, **kwargs) File "c:\dabo\dabo\ui\uiwx\dPanel.py", line 33, in __init__ properties=properties, attProperties=attProperties, *args, **kwargs) File "c:\dabo\dabo\ui\uiwx\dPemMixin.py", line 184, in __init__ self._afterInit() File "c:\dabo\dabo\ui\uiwx\dPemMixin.py", line 318, in _afterInit self.afterInit() File "C:\pyproject\SearchMfrm.py", line 291, in afterInit pgf.appendPage(pgCls=InfoPanel, caption="Information") File "c:\dabo\dabo\ui\uiwx\dPageFrameMixin.py", line 146, in appendPage return self.insertPage(self.GetPageCount(), pgCls, caption, imgKey) File "c:\dabo\dabo\ui\uiwx\dPageFrameMixin.py", line 175, in insertPage pg = pgCls(self) File "c:\dabo\dabo\ui\uiwx\dPanel.py", line 185, in __init__ attProperties=attProperties, *args, **kwargs) File "c:\dabo\dabo\ui\uiwx\dPanel.py", line 164, in __init__ properties=properties, attProperties=attProperties, *args, **kwargs) File "c:\dabo\dabo\ui\uiwx\dPanel.py", line 33, in __init__ properties=properties, attProperties=attProperties, *args, **kwargs) File "c:\dabo\dabo\ui\uiwx\dPemMixin.py", line 184, in __init__ self._afterInit() File "c:\dabo\dabo\ui\uiwx\dPemMixin.py", line 318, in _afterInit self.afterInit() File "C:\pyproject\SearchMfrm.py", line 125, in afterInit summayGrid=dabo.ui.dGrid(self,RegID="summaryID",SelectionMode = "Cell",Editable = False,MovableColumns = False) File "c:\dabo\dabo\ui\uiwx\dGrid.py", line 1759, in __init__ *args, **kwargs) File "c:\dabo\dabo\ui\uiwx\dPemMixin.py", line 181, in __init__ self._setNameAndProperties(properties, **kwargs) File "c:\dabo\dabo\ui\uiwx\dPemMixin.py", line 218, in _setNameAndProperties self._setProperties(properties) File "c:\dabo\dabo\ui\uiwx\dPemMixin.py", line 231, in _setProperties self.setProperties(properties) File "C:\dabo\dabo\lib\propertyHelperMixin.py", line 210, in setProperties _setProps(propDict) File "C:\dabo\dabo\lib\propertyHelperMixin.py", line 199, in _setProps setter(self, _propDict[prop]) File "c:\dabo\dabo\ui\uiwx\dGrid.py", line 4330, in _setSelectionMode self.SetSelectionMode(wx.grid.Grid.wxGridSelectCells) File "C:\Python25\Lib\site-packages\wx-2.8-msw-unicode\wx\grid.py", line 1184, in SetSelectionMode return _grid.Grid_SetSelectionMode(*args, **kwargs) -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul McNett Sent: Friday, October 24, 2008 1:52 PM To: Dabo Users list Subject: Re: [dabo-users]Isit possible tochange the background ortext color of a grid [EMAIL PROTECTED] wrote: > Works fine if I don't use the SelectionMode in the instantiation, > otherwise I get an error saying "assertion error trying to set > SelectionMode before create obj." I'm not seeing this error, and I tried the code on Win, Mac, and Linux. Can you post the entire traceback? Paul [excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users Searchable Archives: http://leafe.com/archives/search/dabo-users This message: http://leafe.com/archives/byMID/!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAAafA2fnYuPUOMNFpIYnBEQcKAAAAQAAAACoCYA0hZwU6e/[EMAIL PROTECTED]
