gtk.mainquit is deprecated

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • awalter1

    gtk.mainquit is deprecated

    Hello,
    (environment : python 2.4.2, pyGTK, GTK+ 2.6.9 under HPUX 11.11: unix)
    On the instruction self.window.des troy(), I get the following
    message :
    lookup.py:121: GtkDeprecationW arning: gtk.mainquit is deprecated, use
    gtk.main_quit instead
    self.window.des troy()
    But I don't want to quit the application, I need only to close the
    window.
    My application includes others places where "self.window.de stroy()"
    instruction is used and the execution is done without warning.
    Very strange.
    Thank you for your help

  • Alan Franzoni

    #2
    Re: gtk.mainquit is deprecated

    Il 27 Feb 2007 01:56:33 -0800, awalter1 ha scritto:
    But I don't want to quit the application, I need only to close the
    window.
    My application includes others places where "self.window.de stroy()"
    instruction is used and the execution is done without warning.
    Very strange.
    But does then the application end, as if gtk.main_quit() were called? If
    it's the case, it's very likely you connected the 'destroy' signal on that
    very window and you set gtk.mainquit() as the callback.

    --
    Alan Franzoni <alan.franzoni. xyz@gmail.com>
    -
    Togli .xyz dalla mia email per contattarmi.
    Remove .xyz from my address in order to contact me.
    -
    GPG Key Fingerprint (Key ID = FE068F3E):
    5C77 9DC3 BD5B 3A28 E7BC 921A 0255 42AA FE06 8F3E

    Comment

    • awalter1

      #3
      Re: gtk.mainquit is deprecated

      Thank you
      You're right. a connection was made between "destroy" and
      gtk.main_quit (a bad cut and paste from an old application).

      On 27 fév, 17:25, Alan Franzoni
      <alan.franzoni_ inva...@geemail .invalidwrote:
      Il 27 Feb 2007 01:56:33 -0800, awalter1 ha scritto:
      >
      But I don't want to quit the application, I need only to close the
      window.
      My application includes others places where "self.window.de stroy()"
      instruction is used and the execution is done without warning.
      Very strange.
      >
      But does then the application end, as if gtk.main_quit() were called? If
      it's the case, it's very likely you connected the 'destroy' signal on that
      very window and you set gtk.mainquit() as the callback.
      >
      --
      Alan Franzoni <alan.franzoni. ...@gmail.com>
      -
      Togli .xyz dalla mia email per contattarmi.
      Remove .xyz from my address in order to contact me.
      -
      GPG Key Fingerprint (Key ID = FE068F3E):
      5C77 9DC3 BD5B 3A28 E7BC 921A 0255 42AA FE06 8F3E

      Comment

      Working...