1. Trang chủ
  2. » Công Nghệ Thông Tin

wxpython in action (2006)

583 773 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

[...]... The wxPython printing framework 504 17.1 How do I print in wxPython? 505 Understanding the printout lifecycle 506 Print framework in action 507 Working with wx.Printout methods 511 ■ ■ 17.2 How do I display the print dialog? 17.3 How do I display the page setup dialog? Creating a print dialog 512 Creating a page setup dialog setup properties 516 515 ■ 515 Working with page 17.4 How do I print something?... fly Chapter 16, Incorporating HTML into your application Within wxPython, you can use HTML to simplify the display and printing of styled text The HTML engine inside wxPython can also be customized to fit your special needs Chapter 17, The wxPython printing framework Printing is managed from a wxPython application through several dedicated print, print data, and print preview objects In this chapter,... Passing other 527 529 Using your drop target 18.4 524 531 ■ 530 Dropping in action Transferring custom objects 533 534 Transferring a custom data object 534 Retrieving a custom object 535 Transferring an object in multiple formats 535 ■ ■ 18.5 Setting timed events using wx.Timer Generating EVT_TIMER events timer uses 539 18.6 536 ■ 536 Learning other Creating a multithreaded wxPython application Working... a print preview? 17.6 18 512 Summary 519 520 Using other wxPython functionality 521 18.1 Putting objects on the clipboard 522 Getting data in the clipboard 522 Manipulating data in the clipboard 523 Retrieving text data from the ■ ■ xviii CONTENTS clipboard 524 The clipboard in action data formats 526 ■ 18.2 Being the source of a drag and drop 18.3 Being the target of a drag and drop Dragging in action. .. the In Action books are designed to help learning and remembering According to research in cognitive science, the things people remember are things they discover during self-motivated exploration Although no one at Manning is a cognitive scientist, we are convinced that for learning to become permanent it must pass through stages of exploration, play, and, interestingly, retelling of what is being... application showing several useful pieces of wxPython functionality By the end of this first part of the book, you should have a solid grounding in wxPython and be ready to face the more reference-oriented material in the rest of the book Welcome to wxPython This chapter covers ■ Getting started with wxPython ■ Creating a minimum wxPython program ■ Importing wxPython ■ Learning the Python programming language... programming language ■ Putting it all together 3 4 CHAPTER 1 Welcome to wxPython Here’s a simple wxPython program It creates a window with one text box that displays the position of the mouse pointer Counting white space, it’s about 20 lines long Listing 1.1 A working wxPython program in a mere 20 lines #!/bin/env python import wx class MyFrame(wx.Frame): def init (self): wx.Frame. init (self, None, -1,... users A bad interface can keep users from finding the functionality in the program, and can even cause people to assume that a perfectly working program is malfunctioning In wxPython, you can create the interface you want with less effort than you’d expect 1.1 Getting started with wxPython We’re going to start by working on a real wxPython program, albeit a simple one We won’t create anything complicated,... going to lead you stepby-step through the process of creating your very first wxPython program Let’s begin by making sure you’ve got everything installed Table 1.1 shows everything you’ll need in order to run wxPython Once the installations are complete, get ready to type We’re going to create a program that displays a single image file This will happen in three steps: 1 We’ll start with the bare minimum... new information here, or, at the very least, you’ll find this book to be a more useful resource than the existing online documentation xxiv ABOUT THIS BOOK xxv How this book is organized We’ve divided wxPython In Action into three parts The first part is an introduction to wxPython concepts, a tutorial on how to get started with wxPython, and some information on wxPython best practices The chapters in . alt="" wxPython in Action wxPython in Action NOEL RAPPIN ROBIN DUNN MANNING Greenwich (74° w. long.) For online information and ordering of this and other Manning books, go to www.manning.com 503 17 The wxPython printing framework 504 17.1 How do I print in wxPython? 505 Understanding the printout lifecycle 506 ■ Print framework in action 507 ■ Working with wx.Printout methods. xxiv PART 1 INTRODUCTION TO WXPYTHON 1 1 Welcome to wxPython 3 1.1 Getting started with wxPython 5 1.2 Creating the bare-minimum wxPython program 7 Importing wxPython 9 ■ Working with applications

Ngày đăng: 26/10/2014, 21:50

Xem thêm: wxpython in action (2006)

TỪ KHÓA LIÊN QUAN

Mục lục

    Who should read this book?

    How this book is organized

    about the cover illustration

    Part 1 - Introduction to wxPython

    1.1 Getting started with wxPython

    1.2 Creating the bare minimum wxPython program

    1.2.2 Working with applications and frames

    1.3 Extending the bare-minimum wxPython program

    1.5 What can wxPython do?

    1.7.3 Putting it together: the wxPython toolkit

TÀI LIỆU CÙNG NGƯỜI DÙNG

  • Đang cập nhật ...

TÀI LIỆU LIÊN QUAN