Giter Club home page Giter Club logo

Comments (6)

glamp avatar glamp commented on August 21, 2024

Sounds cool but I know nothing about this. Where can I read more?

from rodeo.

gokceneraslan avatar gokceneraslan commented on August 21, 2024

For PyQt (GPL) documentation and examples, see:

http://pyqt.sourceforge.net/Docs/PyQt4/qwebview.html

and

https://github.com/pyqt/python-qt5/tree/master/PyQt5/examples/webkit

Alternatively, you can use PySide (LGPL):

https://pyside.github.io/docs/pyside/PySide/QtWebKit/index.html

These are Python-based solutions, however a simple QML-based browser would also work well:

http://doc.qt.io/qt-5/qtwebkitexamples-webkitqml-flickrview-example.html

from rodeo.

stonebig avatar stonebig commented on August 21, 2024

Proof of concept, do on a command line

rodeo .

... rodeo starts in a browser window (firefox on windows 7 in my case)
Now, via spyder (in my use case), type and run this:

import sys
from PyQt4.QtCore import *
from PyQt4.QtGui import *
from PyQt4.QtWebKit import *

app = QApplication(sys.argv)

web = QWebView()
web.load(QUrl("http://localhost:5000"))
web.show()

sys.exit(app.exec_())

and now the unbelievable:

rodeo_under_qt4_qwebview

I'm impressed (what a shame their is a Python3 porting effort to enjoy this)

Ok, in this use-case (maybe Qt4 QtWebKit is showing its age):

  • the editor part has an issue: cursor about 6 characters on the right,
  • the click on the magnifying glass button doesn't do anything,
  • the click on the picture button open the image full screen, but I can't go back.

from rodeo.

stonebig avatar stonebig commented on August 21, 2024

Qt5 version:

import sys
from PyQt5.QtCore import *
from PyQt5.QtGui import *
from PyQt5.QtWebKit import *
from PyQt5.QtWidgets import QApplication
from PyQt5.QtWebKitWidgets import QWebPage, QWebView

app = QApplication(sys.argv)

web = QWebView()
web.load(QUrl("http://localhost:5000"))
web.show()

sys.exit(app.exec_())

In this use-case (Qt5 Webkit only, as QtWebEngine is not compilable with vs2010):

  • the editor part has no issue,
  • the click on the magnifying glass button doesn't do anything,
  • the click on the picture button doesn't open the image full screen.

from rodeo.

glamp avatar glamp commented on August 21, 2024

see 1.0

from rodeo.

gokceneraslan avatar gokceneraslan commented on August 21, 2024

👍

from rodeo.

Related Issues (20)

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.