code cleaning

This commit is contained in:
Rinaldus 2016-03-02 12:06:45 +03:00
parent 9c5033ee2e
commit fffdc47937
3 changed files with 2 additions and 8 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
__pycache__

View File

@ -1,6 +1,6 @@
## About
This is Light weight desktop widget, that shows random picture from given directory. It's similar to the same plasmoid from KDE 4.x. I very liked it and was very upset when KDE 4 became obsolete and there's no alternative plasmoid in KDE 5. That's why I decided to write it myself. It was written in Python 3 and PyQt 5 and it's compatible with all known desktop environments.
This is light weight desktop widget, that shows random picture from given directory. It's similar to the same plasmoid from KDE 4.x. I very liked it and was very upset when KDE 4 became obsolete and there's no alternative plasmoid in KDE 5. That's why I decided to write it myself. It was written in Python 3 and PyQt 5 and it's compatible with all known desktop environments.
## Screenshots
![Main window in MATE](https://raw.github.com/rinaldus/photoframe/master/screenshots/screen1.jpg)

View File

@ -115,13 +115,6 @@ class Window(QDialog):
def moveEvent(self,event):
programSettings.setValue("PosX",window.x())
programSettings.setValue("PosY",window.y())
if (window.x() > 1920 or window.y() > 1000):
PosX = 1700
PosY = 1000
window.move(PosX,PosY)
if (window.x() < 0):
PosX = 0
window.move(PosX,window.y())
def start(self):
self.timer.setInterval(settings.ui.spinUpdateInterval.value()*1000*60)