mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-13 07:17:08 +01:00
⁉️ Not sure if the generated .rst stuff is intended to have
whitespace like this in it or not, so seperating this from the other
commits, so easy to revert if necessary.
20 lines
602 B
Python
20 lines
602 B
Python
|
|
items = ["meat", "fish", "fruits", "beer"]
|
|
order = [3, 0, 1, 2]
|
|
|
|
dlg = wx.RearrangeDialog(None,
|
|
"You can also uncheck the items you don't like "
|
|
"at all.",
|
|
"Sort the items in order of preference",
|
|
order, items)
|
|
|
|
if dlg.ShowModal() == wx.ID_OK:
|
|
order = dlg.GetOrder()
|
|
for n in order:
|
|
if n >= 0:
|
|
wx.LogMessage("Your most preferred item is \"%s\""%n)
|
|
break
|
|
|
|
|
|
|