User Profile

Collapse

Profile Sidebar

Collapse
Borenis
Borenis
Last Activity: Dec 23 '10, 09:42 PM
Joined: Dec 14 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Hi,

    I've had a little success, using the os signals, with this :
    _______________ _______________ _________
    Code:
    from Tkinter import *
    import parallel
    
    root = Tk()
    
    def Intercepte():
        print "Interception de la fermeture de la fenetre"
        resetvalue()
        root.destroy()
    
    p=parallel.Parallel()
        
    def setvalue():
        p.setData(1)
    ...
    See more | Go to post
    Last edited by bvdet; Dec 20 '10, 05:00 PM. Reason: Add code tags

    Leave a comment:


  • Thanks for answering so quickly !

    I have 2 problems with your answer :

    - I can't find BusyBar (i'm using Python 2.7)... Where can I download it?

    - the aim of my program is to protect the amp against mistakes, like exiting the os (windows xp), forgetting to switch them off. So, I don't think you're solution would match with my need. But, I cannot test it (because of BusyBar)

    And... Perhaps I'haven't...
    See more | Go to post
    Last edited by bvdet; Dec 20 '10, 04:59 PM. Reason: Add code tags

    Leave a comment:


  • Tkinter : how to make an action before closing the window ?

    Hi,

    I'm trying to make a small application that uses parralel port for remote control of an audio amplifier (on/off).

    I use a Tkinter object to set/reset one of the line of the parallel port.

    My problem is to find a way to reset the line when windows closes (when I switch of the computer), to avoid damaging my loudspeakers.

    Is there an event that I could use ? Like the event of a mouse clic on the...
    See more | Go to post
No activity results to display
Show More
Working...