Forum Archive

Add a button in the title bar of Pythonista?

cvp

Is it possible to add a button (icon,action) in the title bar of Pythonista, where we find the script name, run button, wrench button etc...

JonB

see
https://github.com/jsbain/objc_hacks/blob/master/apphack.py

This example adds a "run in current workspace" button to the toolbar, but also exposes a general fuction for adding ui.Buttons to the toolbar.

cvp

I've tried the script but tb is None...

Replaced by ...== b'OMTabViewToolbar' ==> ok

One more time (not the last one, I hope) Thanks a lot...

ccc

@cvp You can always post a pull request of your improvements.

cvp

@ccc I suppose it is not really a bug, it was ok in Python 2?

JonB

turns out i had fixed that and other issues a long time ago, but never pushed. fixed now.

cvp

Thanks because execfile was also deprecated...