Programming in Shen/tk

Home Learn Download News Group Chatroom OS Wiki About Us

Author's Note

This is the online table of contents for Programming in Shen/tk (and the Shen IDE). The page links below point into the book.

Table of Contents

Chapter 1 Introducing Shen/tk 1

1.1 Shen/tk 1
1.2 The History of Shen/tk 1
1.3 Installing Shen/tk 2
1.4 Booting Up 4

Chapter 2 The Shen IDE 5

2.1 Booting Up 5
2.2 Exiting Shen/tk 6
2.3 Toggle Buttons 6
2.4 Top Row Buttons 7

Chapter 3 Widgets 11

3.1 File Sharing Communication 11
3.2 Types 12
3.3 Low Level Communication 13
3.4 Basic Functions 14
3.5 Windows 18
3.6 Buttons 19
3.7 Labels 24
3.8 Entries 25
3.9 Text Boxes 28
3.10 Canvases 29

Chapter 4 Images, Fonts, Colours and Cursors 36

4.1 Images 36
4.2 Fonts 38
4.3 Colours 41
4.4 Cursors 63

Chapter 5 The Window Manager 64

5.1 Packing 64
5.2 Using tk.grid 69
5.2 Frames 70

Chapter 6 Dialog Windows 73

6.1 Message Boxes 73
6.2 Choosing Colours 75
6.3 Choosing Files 75

Chapter 7 Surfing the Web 77

7.1 Downloading Data 77
7.2 Eliminating Markup 77
7.3 Collating Sentences 79
7.4 Collating Links 80

Chapter 8 Sounds, Key Bindings and Winfo 82

8.1 Sounds 82
8.2 Key Bindings 82
8.3 tk.winfo 83

Chapter 9 Sample Shen/tk Programs 86

9.1 Check Buttons 86
9.2 Menus 87
9.3 A Calculator Program 89