User Profile

Collapse

Profile Sidebar

Collapse
dunderhead
dunderhead
Last Activity: Sep 25 '06, 01:22 PM
Joined: Nov 13 '05
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Well, after experimenting with various function calls I managed to find a solution to my problem.

    I changed:

    Code:
    MakePanel1.daclick1()
    to

    Code:
    MakePanel1.daclick1(daframe.Panel1,None)
    ... and the program works.

    daframe.Panel1 in the above call references a panel created by the MakePanel1 class, and this is the class that contains the function daclick1().

    ...
    See more | Go to post

    Leave a comment:


  • Calling button-click events from different classes

    Hello,

    I am having a problem with function and class syntax.

    I have one class (MakePanel1) that creates a button and label. The button-click event of the button is linked to a function (daclick1) that changes the text of the label. This works well.

    I have another class (MakePanel2) that creates a second button. I want this second button to call the button-click function of the first button.
    ...
    See more | Go to post

  • dunderhead
    started a topic fedora tkSnack error - "snack::setUseOldObjAPI"

    fedora tkSnack error - "snack::setUseOldObjAPI"

    Hello,

    I would like to use tkSnack through python to manipulate sounds on my fedora 4 system, but I am unable to get the following basic script to run:

    Code:
    #!/usr/bin/env python
    
    from Tkinter import *
    root = Tk()
    
    import tkSnack
    tkSnack.initializeSnack(root)
    
    mysnd = tkSnack.Sound()
    
    mysnd.read('/home/dauser/Desktop/test.wav')
    
    mysnd.play()
    ...
    See more | Go to post
    Last edited by dunderhead; Nov 16 '05, 04:49 AM.
No activity results to display
Show More
Working...