I would like to know how to create an application in Windows that does not have the default border; particularly the title bar with minimize, maximize, and close buttons. I'm thinking of writing a ticker program that takes up a narrow space at the top or bottom of the screen, but I won't attempt it unless it's possible to make a thin application in Python. Any help with terminology is appreciated; maybe I don't know how to ask the right question in searching. Does Tkinter have this option? Thanks
相关问题
- how to define constructor for Python's new Nam
- streaming md5sum of contents of a large remote tar
- How to get the background from multiple images by
- Evil ctypes hack in python
- Correctly parse PDF paragraphs with Python
I found an example that answered my question here.
overrideredirect(1)
is the key function.I like this method because I'm familiar with Tk and preferred a Tk solution, but see the other answers for alternate solutions.
Just need to add your own kill button or quit method.
Try Using QT Designer and Python (PyQT4)
and this code
TestUI is your UI file Created by using "cmd" going into your project directory (by cd[space][your path here])
and typing this
above will create the TestUI.py on projects folder
resfile.ui is the file that you made on QT Designer
Hope this helps.
If you're willing to use Qt/PySide, take a look at
QtCore.Qt.FramelessWindowHint
The code below just proves it's possible and doesn't try to be terribly useful. In particular, you will have to force kill the app to get the app to close. In a proper implementation, you would handle mouse events in a custom way to allow the user to move and close the application. To run this, you will need to install PySide.Hacked up Code