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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T06:36:56+00:00 2026-05-26T06:36:56+00:00

Sorry for the vague title, couldn’t come up with anything more informative %) What

  • 0

Sorry for the vague title, couldn’t come up with anything more informative %)

What I want is a 5px horizontal panel on the top of the screen that I can draw on (and, possible, handle clicks on too).

One of the following features would be awesome (although I understand it’s probably not really possible to combine both of them):

  • the panel should be just like the Windows’s own taskbar, i.e., maximized windows should not overlap it, but start below it instead
  • the panel should show in fullscreen apps too

Is it possible to do this in Python?

Thanks.

  • 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-26T06:36:56+00:00Added an answer on May 26, 2026 at 6:36 am

    Yes, it’s possible. The “how” part depends on the GUI library you choose for which there are many options, but most people will recommend the following two: wxPython or PySide which is Qt for Python.

    PySide has good documentation and tutorials.

    What you will want to do is create a QMainWindow instance and set the WindowFlags to your requirements. You probably want the following combination Qt::Window | Qt::CustomizeWindowHint | Qt::WindowStaysOnTopHint.

    Something like this:

    import sys
    from PySide.QtCore import *
    from PySide.QtGui import *
    
    class Form(QMainWindow):
    
        def __init__(self, parent=None):
            super(Form, self).__init__(parent)
            self.setWindowFlags(Qt::Window | Qt::CustomizeWindowHint | Qt::WindowStaysOnTopHint)
    
    
    if __name__ == '__main__':
        # Create the Qt Application
        app = QApplication(sys.argv)
        # Create and show the form
        form = Form()
        form.show()
        # Run the main Qt loop
        sys.exit(app.exec_())
    

    Note, that there is a limit to the “staying on top” nature of such windows. There are Win32-specific ways to fight it and get even higher, but such requirement would be a design error.

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

Sidebar

Related Questions

First, sorry for the vague question title. I couldn't come up with a more
Sorry for vague question title, i couldn't figure out something more specific. I have
Sorry for the relatively vague title, I couldn't think of anything else. So in
First, sorry for bad title, couldn't come up with something more descriptive. I have
Sorry for the vague title, I couldn't come up with a good way to
Sorry for the rather vague title, I couldn't think up a better description for
sorry if this question has already come up but I couldn't find anything that
Sorry about the vague question title, I just want to ascertain some things. Static
I know the title is vague, sorry I couldn't think of a better way
I'm sorry if the title is confusing but I couldn't think of anything similar

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.