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 3631472
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T00:24:05+00:00 2026-05-19T00:24:05+00:00

I have implemented a custom CellRenderer in PyGTK that can take longer to render

  • 0

I have implemented a custom CellRenderer in PyGTK that can take longer to render than is ideal. There can be multiple images that have to be scaled, so when the user clicks on the ComboBox, it won’t even show the popup until the rendering is completed. If I can show the popup, and then render the image, that would be fine. You can look at it on my Google Code Repository.

I have implemented caching, so that after it loads the first time, it will load from a single image from memory or disk, but the first time it loads can take 2-4 seconds per cell.

The things that I have thought of implementing, include, pop up the combobox when the application loads, so that it forces it to render the image. This does not seem to be working in the tests I have run.

I have also tried to create a CairoContext and surface that is not visible, but I require it to be a gtk.gdk.CairoContext, which I don’t think can be initiated without an actual widget. There’s a possibility that I could render this in a widget offscreen, but I’m not sure if that’s a good idea, or even possible.

  • 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-19T00:24:06+00:00Added an answer on May 19, 2026 at 12:24 am

    I used a Pixmap that was rendered using idle_add once the screen loaded, since it would not initialize the window until it was rendered inside a window on screen. You can find the code in themeselect.py. Look at load_theme_thumbs(), and _get_pixmap().

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

Sidebar

Related Questions

I have implemented a custom UITableViewCell which includes a UITextView that auto-resizes as the
I have implemented custom cancellation logic as described in Concurrency in Practice. Encapsulating nonstandard
i have a custom module with a form I have implemented form hooks like
I have implemented a windows xp service application that starts a couple of working
I have a requeriment to store images in the database using django, and for
I have implemented a ListView in my Android application. I bind to this ListView
It's the first time I use java Rmi*. I have a custom class which
I have looked for a lot of tutorials online and it is very difficult
I have installed my app in a real phone, and even though in the

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.