// (treat as if the event table entry had not been found): this must be done
// to allow the event processing by the base classes (calling event.Skip()
// is the analog of calling the base class verstion of a virtual function)
- void Skip(bool skip = TRUE);
+ void Skip(bool skip = True);
bool GetSkipped() const;
// Determine if this event should be propagating to the parent window.
// Get checkbox value
bool IsChecked() const;
-
- // TRUE if the listbox event was a selection.
+ %pythoncode { Checked = IsChecked }
+
+ // True if the listbox event was a selection.
bool IsSelection() const;
void SetExtraLong(long extraLong);
// True if the mouse is just leaving the window
bool Leaving() const;
- // Find the position of the event
+
+ DocStr(GetPosition, // sets the docstring for both
+ "Returns the position of the mouse in window coordinates when the event happened.");
wxPoint GetPosition();
- %name(GetPositionTuple)void GetPosition(long *OUTPUT, long *OUTPUT);
+ DocDeclAName(
+ void, GetPosition(long *OUTPUT, long *OUTPUT),
+ "GetPositionTuple() -> (x,y)",
+ GetPositionTuple);
+
// Find the logical position of the event given the DC
wxPoint GetLogicalPosition(const wxDC& dc) const;
%extend {
int GetUniChar() {
- #if wxUSE_UNICODE
+ %#if wxUSE_UNICODE
return self->m_uniChar;
- #else
+ %#else
return 0;
- #endif
+ %#endif
}
}
// get the raw key flags (platform-dependent)
wxUint32 GetRawKeyFlags() const;
- // Find the position of the event
+
+ DocStr(GetPosition, // sets the docstring for both
+ "Find the position of the event.");
wxPoint GetPosition();
- %name(GetPositionTuple) void GetPosition(long* OUTPUT, long* OUTPUT);
+
+ DocDeclAName(
+ void, GetPosition(long *OUTPUT, long *OUTPUT),
+ "GetPositionTuple() -> (x,y)",
+ GetPositionTuple);
// Get X position
wxCoord GetX() const;
class wxActivateEvent : public wxEvent
{
public:
- wxActivateEvent(wxEventType type = wxEVT_NULL, bool active = TRUE, int Id = 0);
+ wxActivateEvent(wxEventType type = wxEVT_NULL, bool active = True, int Id = 0);
bool GetActive() const;
};
void SetLoggingOff(bool logOff);
bool GetLoggingOff() const;
- void Veto(bool veto = TRUE);
+ void Veto(bool veto = True);
void SetCanVeto(bool canVeto);
bool CanVeto() const;
class wxShowEvent : public wxEvent
{
public:
- wxShowEvent(int winid = 0, bool show = FALSE);
+ wxShowEvent(int winid = 0, bool show = False);
void SetShow(bool show);
bool GetShow() const;
class wxIconizeEvent: public wxEvent
{
public:
- wxIconizeEvent(int id = 0, bool iconized = TRUE);
+ wxIconizeEvent(int id = 0, bool iconized = True);
bool Iconized();
};
}
for (int i=0; i<count; i++) {
-#if wxUSE_UNICODE
- PyList_SetItem(list, i, PyUnicode_FromWideChar(files[i], files[i].Len()));
-#else
- PyList_SetItem(list, i, PyString_FromString((const char*)files[i]));
-#endif
+ PyList_SetItem(list, i, wx2PyString(files[i]));
}
return list;
}
wxUPDATE_UI_PROCESS_SPECIFIED
};
+
+
class wxUpdateUIEvent : public wxCommandEvent
{
public:
static wxUpdateUIMode GetMode();
};
-
//---------------------------------------------------------------------------
%newgroup;
public:
wxNavigationKeyEvent();
- // direction: forward (true) or backward (false)
+ // direction: forward (True) or backward (False)
bool GetDirection() const;
void SetDirection(bool bForward);
wxIDLE_PROCESS_SPECIFIED
};
+
class wxIdleEvent : public wxEvent
{
public:
wxIdleEvent();
- void RequestMore(bool needMore = TRUE);
+ void RequestMore(bool needMore = True);
bool MoreRequested() const;
// Specify how wxWindows will send idle events: to