I'm trying to determine best practices as well as learn basic coding
syntax. I wish to open an input screen to view/enter data. The screen
also requires a menu. This is part of the code I have so far:

import Tkinter
import tkMessageBox
import Pmw
import wcgc_pg

class calendarWindow:
def __init__(self, parent):
megaToplevel = Pmw.MegaToplevel(parent, title = 'Calendar Program')
toplevel = megaToplevel.interior()
self.balloon = Pmw.Balloon(toplevel)

menuBar = Pmw.MainMenuBar(toplevel,
balloon = self.balloon)
toplevel.configure(menu = menuBar)
self.menuBar = menuBar

This is basically code taken from the Pmw demos. What I wish to
determine now is how to close this window from a menu option and/or a
button. Neither withdraw() nor deactivate() work.

Scott Holmes http://sholmes.ws
scottholmes at sbcglobal.net

Independent Programmer/Analyst Passport 4GL
PHP HTML Composer PostgreSQL Informix 4GL, SQL
There are more things in heaven and earth, Horatio,
than are dreamt of in your philosophy

Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 2 | next ›
Discussion Overview
grouppython-list @
postedAug 1, '03 at 4:40p
activeAug 1, '03 at 11:54p

2 users in discussion

Scott Holmes: 1 post Klappnase: 1 post



site design / logo © 2022 Grokbase