diff --git a/changelog.md b/changelog.md index 1374e11..3ede69b 100644 --- a/changelog.md +++ b/changelog.md @@ -54,6 +54,7 @@ b['1']['2'] = {'3':1} # OK ## 1.0.3 (20200603) ### feature - design GUI with qdesigner ![kman GUI](https://i.loli.net/2020/06/03/wlFETiSCPmx29hI.png) +- define toolbar action's slots # feature plan ## 20200528 @@ -61,3 +62,7 @@ b['1']['2'] = {'3':1} # OK - add GUI use QT + + + + diff --git a/kmanapp.py b/kmanapp.py index ac55e2a..1115ff3 100644 --- a/kmanapp.py +++ b/kmanapp.py @@ -29,35 +29,35 @@ class kmanWindow(QMainWindow): ui.actionflush.triggered.connect(lambda: self.flush()) # define slot functions - def importkindle(): + def importkindle(self): print("call slot importkindle()") pass - def importlocal(): + def importlocal(self): print("call slot importlocal()") pass - def config(): + def config(self): print("call slot config()") pass - def words(): + def words(self): print("call slot words()") pass - def statistic(): + def statistic(self): print("call slot statistic()") pass - def homepage(): + def homepage(self): print("call slot homepage()") pass - def about(): + def about(self): print("call slot about()") pass - def flush(): + def flush(self): print("call slot flush()") pass