User Profile

Collapse

Profile Sidebar

Collapse
drzoo2
drzoo2
Last Activity: Feb 26 '09, 01:40 AM
Joined: Feb 25 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • micmast,
    Thanks you very much.

    I modified this code........
    Code:
    def destroy(self, widget, data=None):
    		print("Delete event occurred")
    		return False
    
    self.popup.connect("destroy", self.destroy)
    
    self.button_pop.connect("clicked", self.destroy)
    too this.......

    Code:
    def destroy(self, widget, data=None):
    		print("Delete
    ...
    See more | Go to post

    Leave a comment:


  • I realize this is a really beginner question. I'm really stuck on this. I can't find an answer. Currently I'm hiding the window with a button call to a function that just runs.....

    self.popup.hide ()

    I don't think this is the right way to handle the popup window since the window's close is tied to the destroy function. It works when called from the window but not from the button.

    z
    See more | Go to post

    Leave a comment:


  • pygtk closing popup - destroy function doesn't work for button

    Completely noob question as I am not a programmer but really trying hard to learn Python (Object oriented programming in general).

    I am writing a program in python that calls a popup window with some general information with an ok button. If I close the window using the window's close button I have no problems but If I call the same destroy function using the button call, it will not kill the popup.


    Code:
    def destroy(self,
    ...
    See more | Go to post
No activity results to display
Show More
Working...