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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T00:54:07+00:00 2026-06-10T00:54:07+00:00

I am designing a windows utility software for Windows 7 coded in Python with

  • 0

I am designing a windows utility software for Windows 7 coded in Python with Wxpython for GUI works.I dont want to open my software if it is already opened.
I want a function like this if user opens that software a message box is to be displayed on windows screen showing that “Your application is already running”.

Plz help.
Thanks in advance…

  • 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-06-10T00:54:08+00:00Added an answer on June 10, 2026 at 12:54 am

    There’s already existing wxPython facility that implements wanted logic, called wx.SingleInstanceChecker. Here’s and example of code (shamelessly borrowed from wxPython wiki):

    import wx
    
    class SingleAppFrame(wx.Frame):
        def __init__(self, parent, title):
            wx.Frame.__init__(self, parent, title=title, size=(300, 300))
            self.Centre()
    
    
    class SingleApp(wx.App):
        def OnInit(self):
            self.name = "SingleApp-%s" % wx.GetUserId()
            self.instance = wx.SingleInstanceChecker(self.name)
            if self.instance.IsAnotherRunning():
                wx.MessageBox("Another instance is running", "ERROR")
                    return False
           frame = SingleAppFrame(None, "SingleApp")
           frame.Show()
           return True
    
    
    app = SingleApp(redirect=False)
    app.MainLoop()
    

    This cannonical example (for a matter of luck) makes exatly what you’ve asked.

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

Sidebar

Related Questions

I'm currently designing an application which I will ultimately want to move to Windows
I'm currently designing my first ever GUI for Windows. I'm using MFC and Visual
I am designing an application for Windows Phone 7, and I want to create
I have made one windows phone based application. i want some designing ideas from
I am currently designing a GUI to control some software. I am using fltk,
I am designing a GUI using Eclipse on Mac, and I want to make
Where can I start learning Windows Form designing? For example: Microsoft Zune player, Buttons,
I'm designing a game for windows 8 using HTML5 , but my game can't
When designing a C API for configuring a library/utility, I have a co-worker who
I am using XAMPP on windows machine for designing my prototype. Here is 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.