Grid layout manager demonstration. : Table Grid « GUI Tk « Python

Python
1. 2D
2. Application
3. Buildin Function
4. Class
5. Data Structure
6. Data Type
7. Development
8. Dictionary
9. Event
10. Exception
11. File
12. Function
13. GUI Pmw
14. GUI Tk
15. Language Basics
16. List
17. Math
18. Network
19. String
20. System
21. Thread
22. Tuple
23. Utility
24. XML
Microsoft Office Word 2007 Tutorial
Java
Java Tutorial
Java Source Code / Java Documentation
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
C# / C Sharp
C# / CSharp Tutorial
ASP.Net
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
PHP
SQL Server / T-SQL
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Python » GUI Tk » Table GridScreenshots 
Grid layout manager demonstration.
Grid layout manager demonstration.

from Tkinter import *

class GridDemoFrame ):
   def __init__self ):
      Frame.__init__self )
      self.master.title"Grid Demo" )

      self.master.rowconfigure0, weight = )
      self.master.columnconfigure0, weight = )
      self.gridsticky = W+E+N+S )
  
      self.text1 = Textself, width = 15, height = )

      self.text1.gridrowspan = 3, sticky = W+E+N+S )
      self.text1.insertINSERT, "Text1" )

      self.button1 = Buttonself, text = "Button 1", width = 25 )
      self.button1.gridrow = 0, column = 1, columnspan = 2, sticky = W+E+N+S )

      self.button2 = Buttonself, text = "Button 2" )
      self.button2.gridrow = 1, column = 1, sticky = W+E+N+S )

      self.button3 = Buttonself, text = "Button 3" )
      self.button3.gridrow = 1, column = 2, sticky = W+E+N+S )

      self.button4 = Buttonself, text = "Button 4" )
      self.button4.gridrow = 2, column = 1, columnspan = 2, sticky = W+E+N+S )

      self.entry = Entryself )
      self.entry.gridrow = 3, columnspan = 2, sticky = W+E+N+S )
      self.entry.insertINSERT, "Entry" )

      self.text2 = Textself, width = 2, height = )
      self.text2.gridrow = 3, column = 2, sticky = W+E+N+S )
      self.text2.insertINSERT, "Text2" )

      self.rowconfigure1, weight = )
      self.columnconfigure1, weight = )

def main():
   GridDemo().mainloop()   

if __name__ == "__main__":
   main()

           
       
Related examples in the same category
1. Grid made by Label and EntryGrid made by Label and Entry
2. Grids on two windowsGrids on two windows
3. Grid made by the Label with Raised borderGrid made by the Label with Raised border
4. 2d table of input fields2d table of input fields
w___ww.__ja___v__a_2s___.__c___o___m__ | Contact Us
Copyright 2003 - 08 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.