Hi,
I just created simple application containing a few forms.
All are datanav.Form class based.
Some of them contains standard Select/Browse/Edit pages
and I have problematic one that contains dTreeView and dSearchBox controls.
I encountered the following problem when closing that form,
namely entire python interpreter crashes when I close form.
Here is that form code:
<CODE>
import dabo
from FrmBase import FrmBase
from PagDictSelectBase import PagDictSelectBase
from GrdBase import GrdBase
from PagSelectBase import PagSelectBase

class abstractDictForm(FrmBase):
    def initProperties(self):
        self.super()
        self.SelectPageClass = PagDictSelectBase
        self.BrowsePageClass = None
        self.EditPageClass = None
        self.BrowseGridClass = GrdBase
    def afterSetupPageFrame(self):
        self.pageFrame.removePage(1)

class PagDictSelectBase(PagSelectBase):
    def getSelectOptionsPanel(self):
        panel = dabo.ui.dPanel(self)
        sizer = dabo.ui.dSizer("vertical")
        sizer.DefaultSpacing = 5
        self.filterCtrl = dabo.ui.dSearchBox(panel)
        self.filterCtrl.SetDescriptiveText("Szukaj...")
        self.filterCtrl.CancelButtonVisible = True
        sizer.append(self.filterCtrl, 0, "expand")
        self.treeCtrl = abstractDictTree(panel)
        sizer.append(self.treeCtrl, 1, "expand")
        button = dabo.ui.dButton(panel)
        button.Caption = u"Importuj słownik"
        sizer.append(button, 0, "expand")
        panel.Sizer = sizer
        return panel

class abstractDictTree(dabo.ui.dTreeView):
    def afterInit(self):
        self.fillTree()
    def fillTree(self):
        self.afterTreeFill()
    def afterTreeFill(self):
        if self.getRootNode() is None:
            self.setRootNode(self.Form.Caption)
        self.ShowRootNode = len(self.nodes) <= 1
</CODE>

All parent classes are generated by AppWizard.
An now what I get:
1) On Linux platform everything works perfectly.
2) On Windows, when I close that form, python interpreter crashes!
    I tried under debugger and form.close isn't even fired.
    Form crashes immediately after clicking close button.
    Other forms closes normally.
    But when I open both type of forms simultaneously, and first close 
other form
    and then that form, it closes normally!!!
    Reverse closing order doesn't work.

I think it's not the Dabo issue but wxPython.
Did you encounter similar problem ever?
Any suggestions?

-- 
Regards
Jacek Kałucki




_______________________________________________
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/[email protected]

Reply via email to