Python
  Home arrow Python arrow Alternative Frames in wxPython
Dev Shed Forums 
Administration  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Forums Sitemap 
IBM® developerWorks 
Dedicated Servers 
E-Commerce Hosting 
Linux Web Hosting 
Managed Hosting 
Small Business Hosting 
Download TestComplete 
VPS Hosting 
Weekly Newsletter

 
Developer Updates  
Free Website Content 
IBM Rational Software Development Conference
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
PYTHON

Alternative Frames in wxPython
By: Peyton McCullough
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 8
    2005-08-29

    Table of Contents:
  • Alternative Frames in wxPython
  • wxDialog
  • wxWizard
  • Multiple Document Interface

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
     
    ADVERTISEMENT

    PCmover - $15 Off with Coupon Code CJPH7Q

    Alternative Frames in wxPython
    (Page 1 of 4 )

    I'm sure you know all about wxPython's primary frame, wxFrame. It is the basis for most of your windows and will most likely continue to be. Of course, though, wxPython offers other things to put controls on. I'm sure you're getting bored of attaching your controls to slight variations of the same exact thing. In this article, we'll explore other frames offered by wxPython, examining what they are for, how they are used and how to change their appearance.

    Let's get started.

    wxMiniFrame

    Our first stop is wxMiniFrame. It is basically a frame with a short title bar at the top, rather than the large one that wxFrame displays. While entire applications will definitely look strange in a wxMiniFrame, small windows that must stay out of the user's way can be made with wxMiniFrame. Let's take a look:

    from wxPython.wx import *

    class Window ( wxMiniFrame ):

       def __init__ ( self ):

          # No suprises here

          # We only use a different class

          wxMiniFrame.__init__ ( self, None, -1, 'A Small Frame' )

          # Create a panel

          self.panel = wxPanel ( self, -1 )

          # Create a wxCheckBox

          self.check = wxCheckBox ( self.panel, -1, 'This is a wxMiniFrame', pos = ( 10, 10 ) )

          # No suprises here, either

          self.Show ( True )

    application = wxPySimpleApp()

    Window()

    application.MainLoop()

    The wxMiniFrame class features nothing else worth mentioning. It's nothing more than a small frame. Let's move on to something else.

    More Python Articles
    More By Peyton McCullough


       · Hey, all. This article just presents some new canvases to work with. Before you read...
     

       

    PYTHON ARTICLES

    - SSH with Twisted
    - Mobile Programming in Python using PyS60: UI...
    - Python: Count on It
    - Python Strings: Spinning Yarns
    - Python: More Fun with Strings
    - Python: Stringing You Along
    - Python Operators
    - Bluetooth Programming in Python: Network Pro...
    - Python Sets
    - Python Conditionals, Lists, Dictionaries, an...
    - Python: Input and Variables
    - Introduction to Python Programming
    - Mobile Programming in Python using PyS60: Ge...
    - Bluetooth Programming using Python
    - Finishing the PyMailGUI Client: User Help To...




    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway