This file contains the SVN revision history for ultimatelistctrl, at revision 68881.
Available information include commit date, the name of the committer, the file size, the SVN log messages and a diff from the previous version (if available).
The following log message was entered by the committer:
AGW: General overhaul of the documentation, much improved. All the widgets have their own sample usage in the docs as well;
FlatNotebook: Added the FNB_NAV_BUTTONS_WHEN_NEEDED style, which hides the navigation left/right arrows if all tabs fit;
RibbonBar: - Added the EVT_RIBBONBAR_TAB_LEFT_DCLICK event, which generates a special event
when a ribbon bar tab is double-clicked;
XLSGrid: a new widget was added to AGW, termed XLSGrid. It’s based on wx.grid.Grid and can be used to faithfully reproduce the appearance of a Microsoft Excel spreadsheets.
Version SVN diff:
--- wxPython/3rdParty/AGW/agw/ultimatelistctrl.py 2011/07/24 21:36:47 68362
+++ wxPython/3rdParty/AGW/agw/ultimatelistctrl.py 2011/08/25 16:40:17 68881
@@ -3,7 +3,7 @@
# Inspired by and heavily based on the wxWidgets C++ generic version of wxListCtrl.
#
# Andrea Gavana, @ 08 May 2009
-# Latest Revision: 22 Jul 2011, 21.00 GMT
+# Latest Revision: 17 Aug 2011, 15.00 GMT
#
#
# TODO List
@@ -78,6 +78,55 @@
And a lot more. Check the demo for an almost complete review of the functionalities.
+Usage
+=====
+
+Usage example::
+
+ import sys
+
+ import wx
+ import wx.lib.agw.ultimatelistctrl as ULC
+
+ class MyFrame(wx.Frame):
+
+ def __init__(self):
+
+ wx.Frame.__init__(self, parent, -1, "UltimateListCtrl Demo")
+
+ list = ULC.UltimateListCtrl(self, wx.ID_ANY, agwStyle=wx.LC_REPORT|wx.LC_VRULES|wx.LC_HRULES|wx.LC_SINGLE_SEL)
+
+ list.InsertColumn(0, "Column 1")
+ list.InsertColumn(1, "Column 2")
+
+ index = list.InsertStringItem(sys.maxint, "Item 1")
+ list.SetStringItem(index, 1, "Sub-item 1")
+
+ index = list.InsertStringItem(sys.maxint, "Item 2")
+ list.SetStringItem(index, 1, "Sub-item 2")
+
+ choice = wx.Choice(list, -1, choices=["one", "two"])
+ index = list.InsertStringItem(sys.maxint, "A widget")
+
+ list.SetItemWindow(index, 1, choice, expand=True)
+
+ sizer = wx.BoxSizer(wx.VERTICAL)
+ sizer.Add(list, 1, wx.EXPAND)
+ self.SetSizer(sizer)
+
+
+ # our normal wxApp-derived class, as usual
+
+ app = wx.PySimpleApp()
+
+ frame = MyFrame(None)
+ app.SetTopWindow(frame)
+ frame.Show()
+
+ app.MainLoop()
+
+
+
Window Styles
=============
@@ -176,7 +225,7 @@
UltimateListCtrl is distributed under the wxPython license.
-Latest Revision: Andrea Gavana @ 22 Jul 2011, 21.00 GMT
+Latest Revision: Andrea Gavana @ 17 Aug 2011, 15.00 GMT
Version 0.8