Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3457984
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T09:55:37+00:00 2026-05-18T09:55:37+00:00

Has anybody come across this? I’ve taken the GTK HelloWorld sample . It runs

  • 0

Has anybody come across this?

I’ve taken the GTK HelloWorld sample. It runs fine. However, if i import win32ui, then it does not shutdown properly (as explained in this question ).

There are other problems. In the process of narrowing down my application to see what caused it to not shutdown, I came upon a point where I was deconstructing a logger class I had written that I had no problems with. In the constructor I had the line:

self.logger = logger

I had commented out the rest of the class so self.logger was not even used. If I left the line as-is, I would get this error upon clicking the “Hello World” button:

c:\python26\lib\site-packages\twisted\internet\gtk2reactor.py:350: GtkWarning: gtk_widget_destroy: assertion `GTK_IS_WIDGET (widget)' failed
  gtk.main()

If I change the line to:

self.logger = 0

then the error would not show up. This happened with various other lines of code in the logger class as well. I suspect it would happen with other random bits of code, too. But in any case – setting a variable that isn’t even used should not cause any kind of problem. Note that at this point I was still using twisted with pygtk. I haven’t reproduced this yet with just gtk.

This makes me suspect pygtk is being really unstable… has anybody come across this before? Is there anything I can do? The reason I updated from gtk 2.12 was because my application would crash randomly, but this is far worse.

UPDATE: The bugs happen on 64-bit Windows 7. I’ve tried both with 32-bit python with the versions listed above, and 64-bit python with pygtk-2.17.1, pygobject-2.21.2, pycairo-1.8.8 and pywin32-214.

So far the win32ui bug does not happen with the same install on a Windows XP VirtualBox virtual machine.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T09:55:38+00:00Added an answer on May 18, 2026 at 9:55 am

    I’ve tried this on a different install of Win7 64-bit on a different computer, and it worked fine. So it’s some strange thing with the hardware/other software on a particular computer. Probably nothing gtk or win32 related.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Has anybody come across ds.hasChanges() being false despite that the ds clearly has the
Has anybody come across a situation where an existing code-base written (say) in Java
Has anybody come across an Enthought TraitsUI (Envisage etc) based Python IDE? I wonder
Anybody come across a clever way of closing a view in a viewmodel using
I was wondering if anybody had come across a good way to validate string-arrays
I've come across strange behavior of pixel shader in WPF. This problem is 100%
I have come across this excellent blog explaining how to provide access to private
This may come across as incredibly stupid, but I cannot figure out if: I
has anybody an idea why the nativequery result is null? $rsm = new ResultSetMapping;
Has anybody ever successfully written code to extract data from a SharePoint 2007 list

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.