示例#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
    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()
示例#3
0
class TPreferencesWindow(TestCase):
    def setUp(self):
        quodlibet.config.init()
        self.win = PreferencesWindow(None)

    def test_ctr(self):
        pass

    def tearDown(self):
        self.win.destroy()
        quodlibet.config.quit()
示例#4
0
class TPreferencesWindow(TestCase):

    def setUp(self):
        config.init()
        init_fake_app()
        # Avoid warnings when running with empty config
        set_columns(["artist", "title"])
        self.win = PreferencesWindow(None)

    def test_ctr(self):
        pass

    def tearDown(self):
        destroy_fake_app()
        self.win.destroy()
        config.quit()
示例#5
0
 def __preferences(self, activator):
     window = PreferencesWindow(self)
     window.show()
示例#6
0
 def setUp(self):
     config.init()
     init_fake_app()
     # Avoid warnings when running with empty config
     set_columns(["artist", "title"])
     self.win = PreferencesWindow(None)
示例#7
0
 def __preferences(self, activator):
     window = PreferencesWindow(self)
     window.show()
示例#8
0
 def setUp(self):
     quodlibet.config.init()
     self.win = PreferencesWindow(None)