All the Window and GDI (pen, bitmap, etc.) classes and also many
toplevel functions will now check that a wx.App object has already been created and will raise a wx.PyNoAppError exception if not. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27565 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -22,6 +22,8 @@ MAKE_CONST_WXSTRING(NOTEBOOK_NAME);
|
||||
|
||||
// TODO: Virtualize this class so other book controls can be derived in Python
|
||||
|
||||
MustHaveApp(wxBookCtrl);
|
||||
|
||||
// Common base class for wxList/Tree/Notebook
|
||||
class wxBookCtrl : public wxControl
|
||||
{
|
||||
@@ -160,6 +162,8 @@ enum {
|
||||
|
||||
|
||||
|
||||
MustHaveApp(wxNotebook);
|
||||
|
||||
class wxNotebook : public wxBookCtrl {
|
||||
public:
|
||||
%pythonAppend wxNotebook "self._setOORInfo(self)"
|
||||
@@ -286,6 +290,8 @@ enum
|
||||
|
||||
|
||||
|
||||
MustHaveApp(wxListbook);
|
||||
|
||||
// wxListCtrl and wxNotebook combination
|
||||
class wxListbook : public wxBookCtrl
|
||||
{
|
||||
|
Reference in New Issue
Block a user