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

  • SEARCH
  • Home
  • 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 6074139
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T10:20:55+00:00 2026-05-23T10:20:55+00:00

The program I am writing can edit a single project at a time. This

  • 0

The program I am writing can edit a single project at a time. This means that opening a new file/project implies closing the previous one. Now what I want to achieve is the following workflow:

  1. User has uncommitted changes to a project he never previously saved, so the project doesn’t have a file name yet.
  2. User presses “open saved project”.
  3. A dialogue “A” pops up and says: “Your current project has uncommitted changes, what would you like to do? Abort new project operation, discard changes to current project, or save them?”.
  4. User selects “save” dialogue.
  5. Dialogue A closes.
  6. Dialogue B1 (file chooser configured for save operation) pops up.
  7. User select file name for project to save.
  8. Dialogue B1 closes, project gets saved.
  9. Dialogue B2 (same file chooser but configured for load operation) pops up.
  10. User select file to open.
  11. Dialogue B2 closes, project is loaded.

So really, in the above example steps 3 to 8 are a sort of “interruption” in the obvious workflow of opening a saved project, so when dialogue A and B1 open, the obvious workflow is halted, and it is resumed when those dialogue get responded.

My question is: how to implement this mechanism of halting/resuming the normal flow of operation? So far the way I implemented it is via a stack on which – any time I open a popup dialogue – I push the “resume-from-here callback”, and any time I respond I pop the callback from.

…yet it seems as mine is a very common scenario for which there should be an easier method (maybe a specific function of PyGTK!).

Many thanks in advance for your help/time!

  • 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-23T10:20:56+00:00Added an answer on May 23, 2026 at 10:20 am

    Would GtkDialog.run() be the method you need? You “run” the dialog, at the point where you need to ask the user, and when it returns you have your answer.

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

Sidebar

Related Questions

Maybe you can help me... I am writing a program in Windows Mobile that
I noticed that I can start a program with it's associated handler by writing
I am writing a program that will open an image file, but strange thing
I am writing a program that reads data packets from a file, and assigns
I am writing a Tkinter program that requires a loop. I can't run the
I am writing a console program in C#. Is there a way I can
I'm writing a program that sends an email out at a client's specific local
I'm writing a program that uses SetWindowRgn to make transparent holes in a window
I am writing a program in Python that will act as a server and
I'm writing a program that contains a generational garbage collector. There are just two

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.