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:
@@ -17,8 +17,8 @@
|
||||
|
||||
%{
|
||||
#include <wx/listctrl.h>
|
||||
|
||||
%}
|
||||
|
||||
MAKE_CONST_WXSTRING2(ListCtrlNameStr, _T("wxListCtrl"));
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
@@ -398,6 +398,8 @@ IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr);
|
||||
|
||||
|
||||
|
||||
MustHaveApp(wxPyListCtrl);
|
||||
|
||||
%name(ListCtrl)class wxPyListCtrl : public wxControl {
|
||||
public:
|
||||
|
||||
@@ -778,6 +780,8 @@ details in the second return value (see wxLIST_HITTEST_... flags.)", "");
|
||||
%newgroup
|
||||
|
||||
|
||||
MustHaveApp(wxListView);
|
||||
|
||||
// wxListView: a class which provides a little better API for list control
|
||||
class wxListView : public wxPyListCtrl
|
||||
{
|
||||
|
Reference in New Issue
Block a user