I just upgraded to Fedora 15 today and noticed the same thing. My application was getting a name "__main__.py" in the status bar across the top of the screen. What worked for me is:
import sys sys.argv[0] = 'whatevernameyouwant' app = QtGui.QApplication() The alt-tab agent recognized the correct application name even without that trick. Nathan On Fri, Oct 21, 2011 at 11:45 AM, anatoly techtonik <[email protected]>wrote: > Thanks for the prompt replies. > > QMainWindow.setWindowTitle() doesn't help. If you take a look at `sdi` > application code, it already sets it: > > https://github.com/PySide/Examples/blob/master/examples/mainwindows/sdi/sdi.py#L273 > > app.setApplicationName('whatevernameyouwant') > this doesn't help either. > > > Maybe there is something that should be done specifically for Fedora/Gnome > 3? > Can anybody confirm this behaviour on other platforms? > -- > anatoly t. > > > > On Fri, Oct 21, 2011 at 5:35 PM, Lee Smith <[email protected]> wrote: > > I think you need QMainWindow.setWindowTitle() ? > > > > > http://www.pyside.org/docs/pyside/PySide/QtGui/QWidget.html#PySide.QtGui.PySide.QtGui.QWidget.setWindowTitle > > > > Lee > > > > On 21 October 2011 14:54, anatoly techtonik <[email protected]> wrote: > >> > >> Maybe I am missing something really obvious, but how to set > >> application name for PySide? The one that is displayed underneath the > >> application icon when you switch between apps with Alt-Tab. > >> > >> All examples I execute from > >> https://github.com/PySide/Examples/tree/master/examples/mainwindows > >> show filename.py instead of name. See attached screenshot - the > >> 'Sdi.py' name at the very top. It is Fedora 15 with Gnome 3 (I > >> believe) and PySide 1.0.8 > >> -- > >> anatoly t. > >> > >> _______________________________________________ > >> PySide mailing list > >> [email protected] > >> http://lists.pyside.org/listinfo/pyside > >> > > > > > _______________________________________________ > PySide mailing list > [email protected] > http://lists.pyside.org/listinfo/pyside >
_______________________________________________ PySide mailing list [email protected] http://lists.pyside.org/listinfo/pyside
