|
|
@ -21,17 +21,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
from PyQt5 import QtCore, QtWidgets
|
|
|
|
from PyQt5 import QtCore, QtWidgets
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def get_py_str(a):
|
|
|
|
def get_py_str(a):
|
|
|
|
'''Returns a python string out of a QString'''
|
|
|
|
'''Returns a python string out of a QString'''
|
|
|
|
return a
|
|
|
|
return a
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def set_utf8_text(component, text):
|
|
|
|
def set_utf8_text(component, text):
|
|
|
|
component.setText(text)
|
|
|
|
component.setText(text)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def get_filename(filename):
|
|
|
|
def get_filename(filename):
|
|
|
|
print (filename)
|
|
|
|
print (filename)
|
|
|
|
return str(filename.toUtf8())
|
|
|
|
return str(filename.toUtf8())
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def add_list_item(l, item):
|
|
|
|
def add_list_item(l, item):
|
|
|
|
hitem = QtWidgets.QListWidgetItem(None, 0)
|
|
|
|
hitem = QtWidgets.QListWidgetItem(None, 0)
|
|
|
|
hitem.setText(item)
|
|
|
|
hitem.setText(item)
|
|
|
|