Skip to content

More cleanups#7

Open
teythoon wants to merge 26 commits intoluksan:masterfrom
teythoon:more_cleanups
Open

More cleanups#7
teythoon wants to merge 26 commits intoluksan:masterfrom
teythoon:more_cleanups

Conversation

@teythoon
Copy link
Collaborator

So, here's the next round of cleanups including packaging cleanups, replacing getopt with optparse, making use of the logging module, cleaning up the imports and fixing various problems found by pyflakes.

Justus Winter added 26 commits August 13, 2012 12:11
Also fix the util.getAppPath function that is used to find additional
data files if kodos is run directly from the git checkout accordingly.
The use of os.system should be replaced by the means of the subprocess
module. This also makes sure that any non zero exit status of make is
fatal.
The .ui files are not used at runtime, so there is no need to install
them.
The debug module is not used anywhere besides util.py and the variable
`debug` from that module is initialized to `DEBUG_NONE` effectively
disabling all debug related events in util.py anyway.
Formerly the code used the qApp imported from PyQt4.QtGui which also
seems to work but it is not obviously clear why. It seems like the
qApp there points to the right (the most recent created?) QApplication
object.

Hand a reference to our QApplication object to the `Kodos` class to
make this explicit and more robust.
There is no QIconSet in Qt4. Simply remove the method RecentFiles.move
since that this method is unused.
The PyQt4 bindings handle python booleans seamlessly. In fact, True
and False are numeric values in python with the same values
(isinstance(True, int) and True == 1).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant