Code Monkey home page Code Monkey logo

examples's People

Contributors

alal avatar babymastodon avatar chaz6 avatar chrrrisw avatar ctismer avatar deavid avatar hugopl avatar igor-bogomolov avatar lauromoura avatar lck avatar limon avatar mponweiser avatar nicoddemus avatar satchmorun avatar winday avatar xmonader avatar zergud avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

examples's Issues

self.loadFinished.connect takes Very Long Time

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?

Recent File example error

When we open the second disk file, the recent files menu is build in wrong way.

How reproduce this error
  • Execute recentfiles.py and open README file. The README file was added in recent file menu.
  • In the next, open other file. menus.py, for exemple. This file will be load on wrong way of settings file and recvent file menu will be:
  1. README
  2. 'm'
  3. 'e'
  4. 'n'
  5. 'u'

"xmlpatterns" demo problem.

    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)

Phonon example issue

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.

many examples fail under PySide 1.2.1

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

Problem with example: Desktop/Systray on Windows

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 :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.