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

  1. List Books Of The New Testament
  2. Listingbook For Realtors
  3. Listingbook Triad Nc

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.

By Ralph Bock, Volker Knoop The past decade has witnessed an explosion of our knowledge on the structure, coding capacity and evolution of the genomes of the two DNA-containing cell organelles in plants: chloroplasts (plastids) and mitochondria. An account activation will be sent to the above Email address. Please verify your Email address is correct prior to proceeding with this form.

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.

List books of the old testament
  • 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.


List Books Of The New Testament

Methods¶

__init__(self, *args, **kw)

Overloaded Implementations:


__init__(self)

Default constructor.


__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) –

  • 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.

Return type

GetListView(self)

Returns the list control used for selecting pages.

Return type


Listingbook For Realtors

Properties¶

ListView

Listingbook Triad Nc

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.

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

Coments are closed

Recent News

  • Vocabagility
  • Jitsi Meet
  • PitchBlitz
  • Photo View

Scroll to top