blob: 26281aaba6ec577a9a8cb4b989eff8457501d0e1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
import dcop
import dcopext
import karamba
from qt import QString, QCString
def closeTheme(theme):
dc = dcop.DCOPClient()
dc.attach()
dc.registerAs('sk_script')
apps = dc.registeredApplications()
for app in apps:
s = str(app)
if s[:12] == 'superkaramba':
d = dcopext.DCOPApp(s, dc)
d.KarambaIface.closeTheme(theme)
def initWidget(widget):
karamba.openTheme('2.theme')
def widgetClicked(widget, x, y, button):
closeTheme('1')
|