PyCButton.CreateWindow

CreateWindow(caption, style, rect, parent, id)

Creates the window for a new button object.

Parameters

caption : string

The caption (text) for the button.

style : int

The style for the button. Use any of the win32con.BS_* constants.

rect : (left, top, right, bottom)

The size and position of the button.

parent : PyCWnd

The parent window of the button. Usually a PyCDialog.

id : int

The buttons control ID.