pyside / examples Goto Github PK
View Code? Open in Web Editor NEWATTENTION: This project is deprecated, please refer to PySide2
Home Page: https://wiki.qt.io/PySide2
ATTENTION: This project is deprecated, please refer to PySide2
Home Page: https://wiki.qt.io/PySide2
In ubuntu 16.04 with pyside 1.2.2 the following line (298) creates a seg fault:
self.view.selectionModel().selectionChanged.connect(self.updateActions)
Commenting such line lets the example app run. I am still not sure what that line is for.
Thanks for the useful examples!
class Example(QWebView):
def init(self):
QWebView.init(self)
self.frame = self.page().mainFrame()
self.loadFinished.connect(self.some_action)
def some_action(self):
print self.frame.toHtml().encode(sys.stdout.encoding, errors='replace')
self.close()
if name == 'main':
app = QtGui.QApplication(sys.argv)
url = QtCore.QUrl(SomeURL)
br = Example()
br.load(url)
br.show()
app.exec_()
This Is Taking Too Long Time With Most Of Web Sites Please Help If There Could Be Any Enhancements, Am I Missing Some Thing Or This Is The Real Performance?
When we open the second disk file, the recent files menu is build in wrong way.
README
file. The README
file was added in recent file menu.menus.py
, for exemple. This file will be load on wrong way of settings file and recvent file menu will be: F:\Pythoncrap\Python34\python.exe F:/Pythoncrap/Python34/Lib/site-packages/PySide/examples/xmlpatterns/schema/schema.py
Traceback (most recent call last):
File "F:/Pythoncrap/Python34/Lib/site-packages/PySide/examples/xmlpatterns/schema/schema.py", line 168, in instanceSelected
self.instanceEdit.setPlainText(encode_utf8(instanceData))
File "F:/Pythoncrap/Python34/Lib/site-packages/PySide/examples/xmlpatterns/schema/schema.py", line 24, in encode_utf8
return str(ba, encoding='utf8')
TypeError: coercing to str: need a bytes-like object, PySide.QtCore.QByteArray found
Traceback (most recent call last):
File "F:/Pythoncrap/Python34/Lib/site-packages/PySide/examples/xmlpatterns/schema/schema.py", line 168, in instanceSelected
self.instanceEdit.setPlainText(encode_utf8(instanceData))
File "F:/Pythoncrap/Python34/Lib/site-packages/PySide/examples/xmlpatterns/schema/schema.py", line 24, in encode_utf8
return str(ba, encoding='utf8')
TypeError: coercing to str: need a bytes-like object, PySide.QtCore.QByteArray found
Traceback (most recent call last):
File "F:/Pythoncrap/Python34/Lib/site-packages/PySide/examples/xmlpatterns/schema/schema.py", line 233, in <module>
window = MainWindow()
File "F:/Pythoncrap/Python34/Lib/site-packages/PySide/examples/xmlpatterns/schema/schema.py", line 138, in __init__
self.schemaSelected(0)
File "F:/Pythoncrap/Python34/Lib/site-packages/PySide/examples/xmlpatterns/schema/schema.py", line 159, in schemaSelected
self.schemaView.setPlainText(encode_utf8(schemaData))
File "F:/Pythoncrap/Python34/Lib/site-packages/PySide/examples/xmlpatterns/schema/schema.py", line 24, in encode_utf8
return str(ba, encoding='utf8')
TypeError: coercing to str: need a bytes-like object, PySide.QtCore.QByteArray found
work around: change xmlpatterns/schema.py #24
from return str(ba, encoding='utf8')
to return str(ba)
I have Windows 7 64 bit. When I run pysideqplayer.py and try to run video it will just run audio, I am not able to see video.
I found this QML demo is quite helpful, and I would like to port it to Python
For example elasticnodes.py doesn't display any edges (arrows).
Many others have errors that don't even allow them to run.
If I debug some of these is there a way to get them uploaded here?
I'm running Py 2.6, PySide 1.2.1 with Qt 4.8 on Windows Vista 32 bit.
Regards
Bill Hayes
Ok, so I am running:
Windows 7 / Python 2.7.5 / QT 4.8.6 / PySide 1.2.2, and I tried this repo's example in desktop called systray. Running the binary from the "QT Examples and Demos" launcher was without problems, but launching systray.py
did not show the embedded .SVG icons within the icon list and neither in the system tray. I found a related topic on SO and added:
from PySide import QtSvg, QtXml
to systray.py
, which at least now shows the icons. However, when I run both the PySide and binary versions side by side, the "Heart" icon is rendered distorted in the PySide version. I guess that means I should set up the renderer correctly?
My main issue is that this should be noted somewhere in the example's documentation, because I assumed the these examples would run flawlessly out of the box. I would be glad to do that however I am still a PySide-noob :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.