Timtam / cards-against-humanity

Cards against humanity client and server written in python
MIT License
5 stars 4 forks source link

python error when adding second card #1

Closed MX795 closed 7 years ago

MX795 commented 7 years ago

Run-Log:

C:\Python\Python27\python.exe E:/GitHub/cards-against-humanity/editor.py Traceback (most recent call last): File "E:\GitHub\cards-against-humanity\editor\cardlist_toolbar.py", line 47, in newCard panel = frame.left_window.card_grid.addCard(id=cursor.lastrowid, text='', card_type=CARD_WHITE) File "E:\GitHub\cards-against-humanity\editor\cardlist.py", line 134, in addCard self.grid.Add(card, 1, wx.EXPAND | wx.ALL, File "C:\Python\Python27\lib\site-packages\wx-3.0-msw\wx_core.py", line 16711, in getattr raise PyDeadObjectError(self.attrStr % self._name) wx._core.PyDeadObjectError: The C++ part of the GridSizer object has been deleted, attribute access no longer allowed.

MX795 commented 7 years ago

additional info: when you add just 1 card, it works fine, no matter if cards.db is empty or filled. with only 1 added card the editor doesn't crash on closing. when you add a second card, the above error shows up and it crashes on closing.

MX795 commented 7 years ago

fixed

but need to check the graphics