-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnugatti.py
More file actions
51 lines (41 loc) · 1.19 KB
/
Copy pathnugatti.py
File metadata and controls
51 lines (41 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# -*- coding: utf-8 -*-
####################################
# NUGATTI (c) martin t. sandsmark #
# http://www.mts-productions.com #
####################################
from qt import *
from nugatti_ui import *
#from qpytella import *
import sys
from kdeui import KLed
class Nugatti(Nugatti_ui):
#def __init__(self):
connected = 0
def addSearchList(self):
lvi = QListViewItem(self.listSearch)
text = self.search.text().ascii()
self.search.clear()
lvi.setText(0, text)
#f.listSearch.insertItem(e)
def addDownloadList (self):
lvi = QListViewItem(self.listDownloads)
text = self.search.text().ascii()
def toggleConnected(self):
if (self.connected == 0):
self.ledConnected.setState(KLed.State(0))
self.connected = 1
#print dir(KLed.state)
else:
self.ledConnected.setState(KLed.State(1))
self.connected = 0
#print dir(KLed.state)
if __name__ == "__main__":
app = QApplication(sys.argv)
f = Nugatti()
f.show()
#lol = tol()
app.setMainWidget(f)
app.connect(f.buttonQuit, SIGNAL("clicked()"),f.accept)
app.connect(f.buttonSearch, SIGNAL("clicked()"),f.addSearchList)
app.connect(f.buttonHelp, SIGNAL("clicked()"), f.toggleConnected)
app.exec_loop()