Skip to content

wx._core.PyAssertionError in Class Designer #18

@rubdos

Description

@rubdos

Hi,

I'm on dabo git working branch, because I'm affected with bugs #16 en #15.

I'm a newbe to Dabo, but I'm trying to create an invoicing application as I became a self-employed.

I started very basic with sqlite; a table for my clients:

CREATE TABLE "clients" (
    "client_id" INTEGER PRIMARY KEY AUTOINCREMENT,
    "name" TEXT,
    "street" TEXT,
    "city" TEXT,
    "postalcode" TEXT
)

and

CREATE TABLE "invoices" (
    "invoice_id" INTEGER PRIMARY KEY AUTOINCREMENT,
    "date" DATETIME,
    "client_fk" INTEGER
)

Now, I try to use the Class Designer and the Add From Data Environment feature, but after selecting the order of my fields and selecting Column; labels on Left on the Layout Selection, the Class Designer breaks when clicking next with this error:

Traceback (most recent call last):
  File "/home/rsmet/.local/lib/python2.7/site-packages/Dabo-0.9.14-py2.7.egg/dabo/ui/uiwx/dControlMixin.py", line 27, in _onWxHit
    self.raiseEvent(dEvents.Hit, evt, *args, **kwargs)
  File "/home/rsmet/.local/lib/python2.7/site-packages/Dabo-0.9.14-py2.7.egg/dabo/ui/uiwx/dPemMixin.py", line 1084, in raiseEvent
    super(dPemMixin, self).raiseEvent(eventClass, nativeEvent, *args, **kwargs)
  File "/home/rsmet/.local/lib/python2.7/site-packages/Dabo-0.9.14-py2.7.egg/dabo/lib/eventMixin.py", line 81, in raiseEvent
    bindingFunction(event)
  File "/home/rsmet/.local/lib/python2.7/site-packages/Dabo-0.9.14-py2.7.egg/dabo/ui/dialogs/Wizard.py", line 126, in onNext
    self.CurrentPage += pg.nextPage()
  File "/home/rsmet/.local/lib/python2.7/site-packages/Dabo-0.9.14-py2.7.egg/dabo/ui/dialogs/Wizard.py", line 311, in _setCurrPage
    self._pages[self._currentPage].onEnterPage(direction)
  File "/home/rsmet/src/dabo/ide/wizards/QuickLayoutWizard.py", line 382, in onEnterPage
    cs.setColExpand(True, 1)
  File "/home/rsmet/.local/lib/python2.7/site-packages/Dabo-0.9.14-py2.7.egg/dabo/ui/uiwx/dGridSizer.py", line 178, in setColExpand
    self.AddGrowableCol(colNum, proportion=proportion)
  File "/usr/lib64/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py", line 15364, in AddGrowableCol
    return _core_.FlexGridSizer_AddGrowableCol(*args, **kwargs)
wx._core.PyAssertionError: C++ assertion "!m_cols || idx < (size_t)m_cols" failed at ./src/common/sizer.cpp(1980) in AddGrowableCol(): invalid column index

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions