forked from openlp/openlp
added doc strings
This commit is contained in:
parent
3a551d08c0
commit
647331c00c
@ -28,7 +28,8 @@
|
|||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Provide a work around for a bug in QFileDialog <https://bugs.launchpad.net/openlp/+bug/1209515>
|
Provide a work around for a bug in QFileDialog
|
||||||
|
<https://bugs.launchpad.net/openlp/+bug/1209515>
|
||||||
"""
|
"""
|
||||||
import os
|
import os
|
||||||
import urllib
|
import urllib
|
||||||
@ -38,8 +39,15 @@ from PyQt4 import QtCore, QtGui
|
|||||||
from openlp.core.lib.ui import UiStrings
|
from openlp.core.lib.ui import UiStrings
|
||||||
|
|
||||||
class FileDialog(QtGui.QFileDialog):
|
class FileDialog(QtGui.QFileDialog):
|
||||||
|
"""
|
||||||
|
Subclass QFileDialog to work round a bug
|
||||||
|
"""
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def getOpenFileNames(parent, title, path, filters):
|
def getOpenFileNames(parent, title, path, filters):
|
||||||
|
"""
|
||||||
|
Reimplement getOpenFileNames to fix the way it returns some file
|
||||||
|
names that url encoded when selecting multiple files/
|
||||||
|
"""
|
||||||
files = QtGui.QFileDialog.getOpenFileNames(parent, title, path, filters)
|
files = QtGui.QFileDialog.getOpenFileNames(parent, title, path, filters)
|
||||||
file_list = QtCore.QStringList()
|
file_list = QtCore.QStringList()
|
||||||
for file in files:
|
for file in files:
|
||||||
|
Loading…
Reference in New Issue
Block a user