return wxArrayInt2PyList_helper(self->GetSelections());
}
}
+
+ %property(Selections, GetSelections, SetSelections, doc="See `GetSelections` and `SetSelections`");
};
DocDeclStr(
void , SetSelection(int sel),
"Set the current selected item to sel", "");
+
+ %property(Selection, GetSelection, SetSelection, doc="See `GetSelection` and `SetSelection`");
+ %property(StringSelection, GetStringSelection, doc="See `GetStringSelection`");
};
DocDeclStr(
void , SetValue(const wxString& value),
"Sets the default text value.", "");
+
+ %property(Value, GetValue, SetValue, doc="See `GetValue` and `SetValue`");
};
//---------------------------------------------------------------------------
"Constructor. Use ShowModal method to show the dialog.", "");
long GetValue();
+
+ %property(Value, GetValue, doc="See `GetValue`");
+
};
//---------------------------------------------------------------------------
%property(AllowSymbols, GetAllowSymbols, SetAllowSymbols, doc="See `GetAllowSymbols` and `SetAllowSymbols`");
%property(ChosenFont, GetChosenFont, SetChosenFont, doc="See `GetChosenFont` and `SetChosenFont`");
%property(Colour, GetColour, SetColour, doc="See `GetColour` and `SetColour`");
- %property(EnableEffects, GetEnableEffects, doc="See `GetEnableEffects`");
+// %property(EnableEffects, GetEnableEffects, doc="See `GetEnableEffects`");
%property(InitialFont, GetInitialFont, SetInitialFont, doc="See `GetInitialFont` and `SetInitialFont`");
%property(ShowHelp, GetShowHelp, SetShowHelp, doc="See `GetShowHelp` and `SetShowHelp`");
//---------------------------------------------------------------------------
+enum {
+ wxPD_AUTO_HIDE,
+ wxPD_APP_MODAL,
+ wxPD_CAN_ABORT,
+ wxPD_ELAPSED_TIME,
+ wxPD_ESTIMATED_TIME,
+ wxPD_REMAINING_TIME,
+ wxPD_SMOOTH,
+ wxPD_CAN_SKIP
+};
+
DocStr(wxProgressDialog,
"A dialog that shows a short message and a progress bar. Optionally, it
// only if style is set. This is so the API doesn't change for existing
// users...
DocDeclAStr(
- virtual bool , Update(int value, const wxString& newmsg = wxPyEmptyString,
+ virtual bool , Update(int value,
+ const wxString& newmsg = wxPyEmptyString,
bool *OUTPUT),
"Update(self, int value, String newmsg) --> (continue, skip)",
"Updates the dialog, setting the progress bar to the new value and, if
unless the Cancel button has been pressed, and ``skip`` is ``False``
unless the Skip button (if any) has been pressed.
-If the ``continue`` return value is ``false``, the application can either
+If the ``continue`` return value is ``False``, the application can either
immediately destroy the dialog or ask the user for confirmation, and if the
abort is not confirmed the dialog may be resumed with `Resume` function.
", "");
+
+ DocDeclAStr(
+ virtual bool , Pulse(const wxString& newmsg = wxPyEmptyString,
+ bool *OUTPUT),
+ "Pulse(self, String newmsg) --> (continue, skip)",
+ "Just like `Update` but switches the dialog to use a gauge in
+interminante mode and calls `wx.Gauge.Pulse` to show the user a bit of
+progress.", "");
+ %pythoncode { UpdatePulse = Pulse }
+
DocDeclStr(
void , Resume(),
"Can be used to continue with the dialog, after the user had chosen to