本文整理汇总了Python中outwiker.core.iconscollection.IconsCollection.removeGroup方法的典型用法代码示例。如果您正苦于以下问题:Python IconsCollection.removeGroup方法的具体用法?Python IconsCollection.removeGroup怎么用?Python IconsCollection.removeGroup使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类outwiker.core.iconscollection.IconsCollection
的用法示例。
在下文中一共展示了IconsCollection.removeGroup方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: testRemoveGroup_02
# 需要导入模块: from outwiker.core.iconscollection import IconsCollection [as 别名]
# 或者: from outwiker.core.iconscollection.IconsCollection import removeGroup [as 别名]
def testRemoveGroup_02(self):
os.mkdir(self.tempDir1)
collection = IconsCollection(self.tempDir1)
collection.addGroup('Новая группа')
collection.removeGroup('Новая группа')
self.assertEqual(collection.getGroups(), [])
示例2: testRemoveGroup_04
# 需要导入模块: from outwiker.core.iconscollection import IconsCollection [as 别名]
# 或者: from outwiker.core.iconscollection.IconsCollection import removeGroup [as 别名]
def testRemoveGroup_04(self):
files = ['new.png', 'image_01.JPG']
fullPaths = [os.path.join(self.imagesDir, fname) for fname in files]
os.mkdir(self.tempDir1)
collection = IconsCollection(self.tempDir1)
collection.addGroup('Новая группа')
collection.addIcons('Новая группа', fullPaths)
collection.removeGroup('Новая группа')
self.assertEqual(collection.getGroups(), [])
示例3: testRemoveGroup_01
# 需要导入模块: from outwiker.core.iconscollection import IconsCollection [as 别名]
# 或者: from outwiker.core.iconscollection.IconsCollection import removeGroup [as 别名]
def testRemoveGroup_01(self):
os.mkdir(self.tempDir1)
collection = IconsCollection(self.tempDir1)
collection.addGroup('Новая группа')
collection.addGroup('Другая группа')
collection.removeGroup('Новая группа')
self.assertEqual(collection.getGroups(), ['Другая группа'])
newcollection1 = IconsCollection(self.tempDir1)
self.assertEqual(newcollection1.getGroups(), ['Другая группа'])