rumps
rumps copied to clipboard
Make app title display content split to two lines.
Hello, I'm trying to write an app whose title is two lines in the menu bar to save space. is this possible?
`import rumps
class TwoLineTitleApp(rumps.App): def init(self): super(TwoLineTitleApp, self).init("Two Line\nTitle App") # Set the menu items self.menu = ["Item 1", "Item 2"]
if name == "main": app = TwoLineTitleApp() app.run() `
As far as I can tell, apps which show 2 lines of text in the Mac menu bar are actually creating images and showing those. Perhaps you can dynamically create an image and set the app's icon to that?
Great idea. I'll try that
Regards, Carlos Miguel C. Resurreccion On May 2, 2023 at 5:42 PM +0800, Simon Brunning @.***>, wrote:
As far as I can tell, apps which show 2 lines of text in the Mac menu bar are actually creating images and showing those. Perhaps you can dynamically create an image and set the app's icon to that? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>