ListBook

The latest tweets from @Listingbook. Amazon.com: Beautiful Tiger ListBook (4.25 x 11 inches) Side-Bound Notebook - Cover Art by Nationally Recognized Artist NJ Busse - Purr-fect for keeping all your lists. An account activation will be sent to the above Email address. Please verify your Email address is correct prior to proceeding with this form.

wx.Listbook is a class similar to wx.Notebook but which uses a wx.ListCtrl to show the labels instead of the tabs.

Listbook impressed me on multiple levels. No matter where you go this is the coolest, most happening thing around. And if I had Listbook available for me a couple of years back then I would have already doubled my business by now.

The underlying wx.ListCtrl displays page labels in a one-column report view by default. Calling BookCtrl.SetImageList will implicitly switch the control to use an icon view.

My Listingbook

For usage documentation of this class, please refer to the base abstract class BookCtrl. You can also use the Notebook Sample to see wx.Listbook in action.

Window Styles¶

This class supports the following styles:

  • wx.LB_DEFAULT: Choose the default location for the labels depending on the current platform (left everywhere except Mac where it is top).

  • wx.LB_TOP: Place labels above the page area.

  • wx.LB_LEFT: Place labels on the left side.

  • wx.LB_RIGHT: Place labels on the right side.

  • wx.LB_BOTTOM: Place labels below the page area.

Events Emitted by this Class¶

Handlers bound for the following event types will receive a wx.BookCtrlEvent parameter.

  • EVT_LISTBOOK_PAGE_CHANGED: The page selection was changed. Processes a wxEVT_LISTBOOK_PAGE_CHANGED event.

  • EVT_LISTBOOK_PAGE_CHANGING: The page selection is about to be changed. Processes a wxEVT_LISTBOOK_PAGE_CHANGING event. This event can be vetoed.

See also

wx.BookCtrl , wx.Notebook, Notebook Sample

Class Hierarchy¶

Control Appearance¶

wxMSW

wxGTK

Methods Summary¶

Default constructor.

Create the list book control that has already been constructed with the default constructor.

Returns the wx.ListView associated with the control.

Properties Summary¶

See GetListView

Class API¶

class wx.Listbook(BookCtrlBase)

Possible constructors:

Listbook is a class similar to Notebook but which uses a ListCtrl to show the labels instead of the tabs.


Methods¶

__init__(self, *args, **kw)

Overloaded Implementations:


__init__(self)

Default constructor.


ListBook

__init__(self, parent, id=ID_ANY, pos=DefaultPosition, size=DefaultSize, style=0, name=””)

Constructs a listbook control.

Parameters
  • parent (wx.Window) –

  • id (wx.WindowID) –

  • pos (wx.Point) –

  • size (wx.Size) –

  • style (long) –

  • Youtube converter 2 mp3. name (string) –



Create(self, parent, id=ID_ANY, pos=DefaultPosition, size=DefaultSize, style=0, name=')

Create the list book control that has already been constructed with the default constructor.

Parameters
  • parent (wx.Window) –

  • id (wx.WindowID) –

  • pos (wx.Point) –

  • size (wx.Size) –

  • style (long) –

  • name (string) –

Return type

bool


static GetClassDefaultAttributes(variant=WINDOW_VARIANT_NORMAL)
Parameters

variant (WindowVariant) –

Return type

GetListView(self, *args, **kw)

Overloaded Implementations:


GetListView(self)

Returns the wx.ListView associated with the control.

Listbook Real Estate

Return type

GetListView(self)

Returns the list control used for selecting pages.

Return type

Listingbook.co


Properties¶

List Books Of The Apocrypha

ListView

See GetListView

wx.Listbook

The Listbook control uses a ListCtrl to instead of tabs to control the notebook. In this case, you can actually use labeled pictures to change tabs. It’s kind of weird, but I think it’s kind of cool too. As with the Choicebook, this control inherits from the BookCtrlBase and has the same methods. The primary differences seem to lie with the Listbook’s appearance and in its unique set of events. Let’s take a quick peek at my demo to see how to create one!

The Listbook’s “tab” controls can be set run along any of the sides, just like the wx.Notebook. You can also attach images with the same methods we used in the Notebook example at the beginning. I shortened the code up a bit by putting the panels in a list and looping over it, but other than that, there’s not much more to write about concerning this widget.

List Book On Amazon

All code was tested on the following:

  • Windows XP, wxPython 2.8.10.1 (unicode), Python 2.5
  • Windows Vista, wxPython 2.8.10.1 (unicode), Python 2.5

For Further Information

  • Official wx.Listbook Documentation

  • Official wxPython Demo

Note: The tutorial on this page is a modified version of the tutorial on my blog