Add Nice Crystal Arrow Buttons to ItemPicker Demo

Fancy up the demo a bit, because -> & <- are just too plain

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@74381 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2013-07-05 22:24:25 +00:00
parent 015592545a
commit 609a6856a7

View File

@@ -3,6 +3,7 @@ from wx.lib.itemspicker import ItemsPicker, \
EVT_IP_SELECTION_CHANGED, \
IP_SORT_CHOICES, IP_SORT_SELECTED,\
IP_REMOVE_FROM_CHOICES
from images import _bp_btn1, _bp_btn2
#----------------------------------------------------------------------
@@ -50,6 +51,10 @@ class ItemsPickerDialog(wx.Dialog):
'Stuff:', 'Selected stuff:',ipStyle = style)
self.ip.Bind(EVT_IP_SELECTION_CHANGED, self.OnSelectionChange)
self.ip._source.SetMinSize((-1,150))
self.ip.bAdd.SetBitmap(_bp_btn2.GetBitmap(), dir=wx.RIGHT)
self.ip.bAdd.SetLabel('Add')
self.ip.bRemove.SetBitmap(_bp_btn1.GetBitmap(), dir=wx.LEFT)
self.ip.bRemove.SetLabel('Remove')
sizer.Add(self.ip, 0, wx.ALL, 10)
self.SetSizer(sizer)
self.itemCount = 3