本文整理匯總了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(), ['Другая группа'])