How to place menu on the bottom

2008-08-30 Thread qxyuestc
#!/usr/bin/env python import sys import os from tkinter import * def callback(self): #int this snippet, all menu entries use the same callback... print("callback") class DemoMenu(): def __init__(self): self.dataTemp = "" self.createWidgets() def createWidgets(s

Re: How to place menu on the bottom

2008-08-30 Thread qxyuestc
On Aug 30, 6:04 pm, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > >         self.rootWin.config(menu=menuBar) > > I want to place the menu on the bottom (menuFrame.pack(side=BOTTOM, > > fill=X)). But it does not work. Why? > > menubars that are configured via the window menu

what's the difference between f(a) and f(*a)

2008-09-02 Thread qxyuestc
def sum1(*a): return(sum(i*i for i in a)) def sum2(a): return(sum(i*i for i in a)) a=[1,2,3] print(sum1(*a), sum2(a)) showed above: the result from sum1() and sum2() is the same. So, what is the difference between f(a) and f(*a) -- http://mail.python.org/mailma