28.10.2021 Views

Python Tutorial ( PDFDrive )

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Example: ................................................................................................ 406

LabelFrame ............................................................................................ 407

Syntax: ................................................................................................... 407

Parameters: ............................................................................................ 407

Example: ................................................................................................ 408

tkMessageBox ........................................................................................ 408

Syntax: ................................................................................................... 409

Parameters: ............................................................................................ 409

Example: ................................................................................................ 409

Standard attributes: ................................................................................ 410

Length options: ....................................................................................... 410

Simple Tuple Fonts: ............................................................................... 411

EXAMPLE: ............................................................................................. 411

Font object Fonts: .................................................................................. 411

EXAMPLE: ............................................................................................. 412

X Window Fonts: .................................................................................... 412

Example: ................................................................................................ 413

Example: ................................................................................................ 413

Example: ................................................................................................ 414

Example: ................................................................................................ 416

Geometry Management: ........................................................................ 416

The pack() Method ................................................................................. 417

Syntax: ................................................................................................... 417

Example: ................................................................................................ 417

The grid() Method ................................................................................... 418

Syntax: ................................................................................................... 418

Example: ................................................................................................ 418

The place() Method ................................................................................ 418

Syntax: ................................................................................................... 418

Example: ................................................................................................ 419

Python Further Extensions .................................................... 420

Pre-Requisite: ........................................................................................ 420

First look at a Python extension: ............................................................ 420

The header file Python.h ........................................................................ 420

The C functions: ..................................................................................... 421

The method mapping table: ................................................................... 421

EXAMPLE: ........................................................................................... 422

The initialization function: ....................................................................... 422

TUTORIALS POINT

Simply Easy Learning

EXAMPLE: ........................................................................................... 422

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!