コード例 #1
0
 def __add_custom_column(self, item):
     # Prefs has to import SongList, so do this here to avoid
     # a circular import.
     from quodlibet.qltk.prefs import PreferencesWindow
     window = PreferencesWindow(self)
     window.show()
     window.set_page("songlist")
コード例 #2
0
ファイル: songlist.py プロジェクト: lebauce/quodlibet
 def __add_custom_column(self, item):
     # Prefs has to import SongList, so do this here to avoid
     # a circular import.
     from quodlibet.qltk.prefs import PreferencesWindow
     window = PreferencesWindow(self)
     window.show()
     window.set_page("songlist")
コード例 #3
0
ファイル: quodlibetwindow.py プロジェクト: virtuald/quodlibet
    def __configure_scan_dirs(self, library):
        """Get user to configure scan dirs, if none is set up"""
        if not get_scan_dirs() and not len(library) and quodlibet.is_first_session("quodlibet"):
            print_d("Couldn't find any scan dirs")

            resp = ConfirmLibDirSetup(self).run()
            if resp == ConfirmLibDirSetup.RESPONSE_SETUP:
                prefs = PreferencesWindow(self)
                prefs.set_page("library")
                prefs.show()
コード例 #4
0
    def __configure_scan_dirs(self, library):
        """Get user to configure scan dirs, if none is set up"""
        if not get_scan_dirs() and not len(library) and \
                quodlibet.is_first_session("quodlibet"):
            print_d("Couldn't find any scan dirs")

            resp = ConfirmLibDirSetup(self).run()
            if resp == ConfirmLibDirSetup.RESPONSE_SETUP:
                prefs = PreferencesWindow(self)
                prefs.set_page("library")
                prefs.show()
コード例 #5
0
 def __configure_scan_dirs(self, library):
     """Get user to configure scan dirs, if none is set up"""
     if not get_scan_dirs() and not len(library) and \
             quodlibet.is_first_session("quodlibet"):
         print_d("Couldn't find any scan dirs")
         if qltk.ConfirmAction(self, _("Set up library directories?"),
                _("You don't have any music library set up. "
                  "Would you like to do that now?")).run():
             prefs = PreferencesWindow(self)
             prefs.set_page("library")
             prefs.show()