From fffdc479379c5acfbd512b7a3ad9fd4780c6cca9 Mon Sep 17 00:00:00 2001 From: Rinaldus Date: Wed, 2 Mar 2016 12:06:45 +0300 Subject: [PATCH] code cleaning --- .gitignore | 1 + README.md | 2 +- photoframe.py | 7 ------- 3 files changed, 2 insertions(+), 8 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..bee8a64 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +__pycache__ diff --git a/README.md b/README.md index 86a80e0..d6a563d 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/photoframe.py b/photoframe.py index 6fb5423..e6a69bb 100755 --- a/photoframe.py +++ b/photoframe.py @@ -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)