Table Of Contents

Previous topic

SizedFrame

Next topic

SizedParent

This Page

phoenix_title SizedPanel


class_hierarchy Inheritance Diagram

Inheritance diagram for class SizedPanel

Inheritance diagram of SizedPanel


super_classes Known Superclasses

PyPanel, lib.sized_controls.SizedParent


method_summary Methods Summary

__init__ A sized panel
AddChild Called automatically by wx, do not call it from user code

api Class API



class SizedPanel(PyPanel, SizedParent)

Methods



__init__(self, *args, **kwargs)

A sized panel

Controls added to it will automatically be added to its sizer.

Usage: ‘self’ is a SizedPanel instance

self.SetSizerType(“horizontal”)

b1 = wx.Button(self, wx.ID_ANY) t1 = wx.TextCtrl(self, -1) t1.SetSizerProps(expand=True)



AddChild(self, child)

Called automatically by wx, do not call it from user code