Browse Source

code cleaning

master
Rinaldus 6 years ago
parent
commit
fffdc47937
  1. 1
      .gitignore
  2. 2
      README.md
  3. 7
      photoframe.py

1
.gitignore vendored

@ -0,0 +1 @@ @@ -0,0 +1 @@
__pycache__

2
README.md

@ -1,6 +1,6 @@ @@ -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)

7
photoframe.py

@ -115,13 +115,6 @@ class Window(QDialog): @@ -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)

Loading…
Cancel
Save