Programming the Raspberry Pi, Second Edition: Getting Started with Python by Monk Simon

Programming the Raspberry Pi, Second Edition: Getting Started with Python by Monk Simon

Author:Monk, Simon
Language: eng
Format: epub
Publisher: McGraw-Hill Education
Published: 2015-10-05T04:00:00+00:00


Figure 7-6 An example of resizing a window.

The code for this is shown here:

The key to understanding such layouts is the use of the sticky attributes of the components to decide which walls of their grid cell they should stick to. To control which of the columns and rows expand when the window is resized, you use the columnconfigure and rowconfigure commands. Figure 7-7 shows the arrangement of GUI components that make up this window. The lines indicate where the edge of a user interface item is required to “stick” to its containing wall.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.