python-2.7


pyqt string to a normal python string is giving some text appends to the string


When I try to print a PyQT string, it is not converted to a normal string. How can I do it? See the code below.
def _execute_test(self):
test_in = str(self.buildFlags.inFlags)
test_out = str(self.buildFlags.exFlags)
print(str(test_in))
print("============")
print(str(test_out))
The output I get is:
>>> [PyQt4.QtCore.QString(u'Documents'), PyQt4.QtCore.QString(u'New folder')]
If you want to print a list of string from a list of PyQt4.QtCore.QString try this:
print([str(x) for x in my_qstring_list])

Related Links

can't install difflib and urllib.parse on python 2.7
How to Capture a response for HTTPS with python
What to use for the arguments of skimage.measure.moments_central( )?
Python save variable to file like save() in MATLAB
Pad variable width columns to make columns line up
http headers in flask not working on linux server
Getting Asynchronous Sessions cleanup phase starting NOW using Phantomjs
Is there an efficient way to fill date gaps in python?
Finding max element in a list in Python
Python 2.7 pySerial read() returns all characters in Python interpreter but not Python script. Also need robust way to read until buffer is empty
Python script could not find a filename
sqlalchemy insert data from dictionary
python 2.7 - trying to print a string and the (printed) output of function in the same line
create and use NumPy array with dtype of builtin int
Need help extracting links from a TD in webpage
Python Numpy Installation Windows 10 64-bit

Categories

HOME
opengl
ionic2
postgresql-9.4
activex
message-queue
dry
plaid
biztalk
repair
capistrano
minecraft
static-analysis
watch-os-3
graphdb
squirrel-sql
dma
android-5.1.1-lollipop
jqxgrid
varnish-vcl
cpu-usage
connection-refused
firemonkey-style
function-points
jpa-2.1
fusetools
ipa
crud
basex
materialize
mdns
matlab-app-designer
gsp
ms-media-foundation
dreamfactory
textmate2
ms-dos
eclipse-gmf
django-smart-selects
dagger
julius-speech
sendinput
reverse-dns
zend-form
axis
intellij-lombok-plugin
email-forwarding
apache-modules
rcharts
emf-compare
boost-compute
scheduledexecutorservice
jsf-2.3
traversable
odp.net-managed
facebook-ios-sdk
sharepoint-apps
flipclock
django-validation
voronoi
json-spirit
arbre
dnx50
gitlab-omnibus
ngcordova
android-handler
fuseesb
subfolder
sunos
rubber
utf8-decode
iplimage
box2dweb
network-printers
boolean-algebra
cpu-time
spring-security-acl
apportable
acceptance-testing
oscilloscope
ofstream
cyrillic
ckeditor.net
smartfox
jquery-dialog
kaazing
prefuse
mmc3
dynamic-c
will-paginate
outlook-2007-addin
mysqli-multi-query
rendering-engine

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile