File: TestModules.py

package info (click to toggle)
cairo-dock 3.5.1-2.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 12,936 kB
  • sloc: ansic: 55,359; sh: 2,037; python: 522; xml: 34; makefile: 10
file content (16 lines) | stat: -rw-r--r-- 419 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
from Test import Test, key, set_param
from CairoDock import CairoDock

# Test Modules
class TestModules(Test):
	def __init__(self, dock):
		Test.__init__(self, "Test modules", dock)
	
	def run(self):
		instances = self.d.GetProperties('type=Module-Instance')
		
		for mi in instances:
			print ("  Reload %s (%s)..." % (mi['name'], mi['config-file']))
			self.d.Reload('config-file='+mi['config-file'])
		
		self.end()