本文整理汇总了Python中quodlibet.qltk.properties.SongProperties.hide方法的典型用法代码示例。如果您正苦于以下问题:Python SongProperties.hide方法的具体用法?Python SongProperties.hide怎么用?Python SongProperties.hide使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类quodlibet.qltk.properties.SongProperties
的用法示例。
在下文中一共展示了SongProperties.hide方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: TSongProperties
# 需要导入模块: from quodlibet.qltk.properties import SongProperties [as 别名]
# 或者: from quodlibet.qltk.properties.SongProperties import hide [as 别名]
class TSongProperties(TestCase):
af1 = AudioFile({"title": "woo"})
af1.sanitize(fsnative(u"invalid"))
af2 = AudioFile({"title": "bar", "album": "quux"})
af2.sanitize(fsnative(u"alsoinvalid"))
def setUp(self):
SongProperties.plugins = DummyPlugins()
config.init()
self.library = SongLibrary()
def test_onesong(self):
self.window = SongProperties(self.library, [self.af1])
def test_twosong(self):
self.window = SongProperties(self.library, [self.af2, self.af1])
def test_changed(self):
self.test_twosong()
self.window.hide()
self.library.emit('changed', [self.af2])
while Gtk.events_pending():
Gtk.main_iteration()
def test_removed(self):
self.test_twosong()
self.window.hide()
self.library.emit('removed', [self.af2])
while Gtk.events_pending():
Gtk.main_iteration()
def tearDown(self):
try:
self.window.destroy()
except AttributeError:
pass
else:
del(self.window)
self.library.destroy()
del(SongProperties.plugins)
config.quit()