mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-07 04:20:07 +01:00
Phoenix:
- Add support for `RearrangeDialog` and its friends in the documentation builder; - Add XXXBook images for the various platforms. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71882 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
BIN
docs/sphinx/_static/images/widgets/fullsize/wxgtk/choicebook.png
Normal file
BIN
docs/sphinx/_static/images/widgets/fullsize/wxgtk/choicebook.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.1 KiB |
BIN
docs/sphinx/_static/images/widgets/fullsize/wxgtk/listbook.png
Normal file
BIN
docs/sphinx/_static/images/widgets/fullsize/wxgtk/listbook.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.8 KiB |
BIN
docs/sphinx/_static/images/widgets/fullsize/wxmac/choicebook.png
Normal file
BIN
docs/sphinx/_static/images/widgets/fullsize/wxmac/choicebook.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.7 KiB |
BIN
docs/sphinx/_static/images/widgets/fullsize/wxmac/listbook.png
Normal file
BIN
docs/sphinx/_static/images/widgets/fullsize/wxmac/listbook.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.8 KiB |
BIN
docs/sphinx/_static/images/widgets/fullsize/wxmsw/choicebook.png
Normal file
BIN
docs/sphinx/_static/images/widgets/fullsize/wxmsw/choicebook.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.3 KiB |
BIN
docs/sphinx/_static/images/widgets/fullsize/wxmsw/listbook.png
Normal file
BIN
docs/sphinx/_static/images/widgets/fullsize/wxmsw/listbook.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.1 KiB |
@@ -0,0 +1,19 @@
|
||||
|
||||
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
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
|
||||
class MyRearrangeDialog(wx.RearrangeDialog):
|
||||
|
||||
def __init__(self, parent):
|
||||
|
||||
wx.RearrangeDialog.__init__(self, parent)
|
||||
|
||||
panel = wx.Panel(self)
|
||||
sizer = wx.BoxSizer(wx.HORIZONTAL)
|
||||
sizer.Add(wx.StaticText(panel, wx.ID_ANY,
|
||||
"Column width in pixels:"))
|
||||
sizer.Add(wx.TextCtrl(panel, wx.ID_ANY, ""))
|
||||
panel.SetSizer(sizer)
|
||||
self.AddExtraControls(panel)
|
||||
|
||||
|
||||
# ... code to update the text control with the currently selected
|
||||
# item width and to react to its changes omitted ...
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
|
||||
order = [0] # checked item #0
|
||||
Reference in New Issue
Block a user