mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-06 03:50:06 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user