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.

Starting a New Thread: .......................................................................... 355

EXAMPLE: ............................................................................................. 355

The Threading Module: .......................................................................... 356

Creating Thread using Threading Module: ............................................. 356

EXAMPLE: ........................................................................................... 357

Synchronizing Threads: ......................................................................... 358

EXAMPLE: ........................................................................................... 358

Multithreaded Priority Queue: ................................................................ 359

EXAMPLE: ........................................................................................... 359

Python XML Processing ........................................................ 361

XML Parser Architectures and APIs: ...................................................... 361

Parsing XML with SAX APIs: ................................................................. 362

The make_parser Method: ..................................................................... 362

The parse Method: ................................................................................. 363

The parseString Method: ........................................................................ 363

EXAMPLE: ........................................................................................... 363

Parsing XML with DOM APIs: ................................................................ 365

Python GUI Programming ..................................................... 367

Tkinter Programming .............................................................................. 367

Example: ................................................................................................ 367

Tkinter Widgets ...................................................................................... 368

Methods: ................................................................................................ 370

Example: ................................................................................................ 370

Example: ................................................................................................ 372

Methods: ................................................................................................ 375

Example: ................................................................................................ 375

Syntax: ................................................................................................... 376

Parameters: ............................................................................................ 376

Methods: ................................................................................................ 377

Example: ................................................................................................ 377

Syntax: ................................................................................................... 378

Parameters: ............................................................................................ 378

Example: ................................................................................................ 379

Syntax: ................................................................................................... 379

Parameters: ............................................................................................ 379

Example: ................................................................................................ 380

Syntax: ................................................................................................... 381

Parameters: ............................................................................................ 381

Methods: ................................................................................................ 382

TUTORIALS POINT

Simply Easy Learning

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

Saved successfully!

Ooh no, something went wrong!