Submission deadline in::

Welcome to visit Open Karelia:

You are here

Problem with progress bar(PyQt)

446 posts / 0 new
Last post
lagutinans
Problem with progress bar(PyQt)

We have a some problem with progress bar, because of such kind of progress bar as QProgressBar doesn't allow us to display progress in action with a unknown duration. Can you help us with search solution of this problem?

We have a problem with viewing media content from QWebView. If content is displayed by method QWebView.setUrl(QUrl(...)) when media is displayed correctly, but method setHtml(QString(...))don't display media. For example:
(with setHtml)
[code]
import sys

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

class ViewMessage(QtGui.QMainWindow):
    def __init__(self, parent = None):
        """
        initialization viewing window
        @return
        """
        super(ViewMessage, self).__init__(parent)

        #connect plugins for video
        QWebSettings.globalSettings().setAttribute(QWebSettings.PluginsEnabled,
                                                   True)
        QWebSettings.globalSettings().setAttribute(QWebSettings.JavaEnabled,
                                                   True)
        #our proxy(if it is needed)
        #from PyQt4.QtNetwork import QNetworkProxy
        #proxy = QNetworkProxy(QNetworkProxy.HttpProxy, "proxy.karelia.ru", 81)
        #QNetworkProxy.setApplicationProxy(proxy)
       
        self.view_mes_widget = QWebView()
              
        text5 = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\
        <html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>\
        <title>iframe</title><style type="text/css">HTML, BODY { background:transparent; padding:0; margin:0; border:0; overflow:hidden; }</style>\
        </head><body><object style="height: 344px; width: 425px;"><param value="http://www.youtube.com/v/3eLKrECd4x8" name="movie" />\
        <param value="true" name="allowFullScreen" /><param value="always" name="allowScriptAccess" />\
        <embed height="344" width="425" allowfullscreen="true" type="application/x-shockwave-flash" src="http://www.youtube.com/v/3eLKrECd4x8">\
        </embed></object></body></html>'
          
        self.view_mes_widget.setHtml(text5)
        self.view_mes_widget.show()

        self.setCentralWidget(self.view_mes_widget)
        self.show()
[/code]
(with setUrl)
[code]
import sys

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

class ViewMessage(QtGui.QMainWindow):
    def __init__(self, parent = None):
        """
        initialization viewing window
        @return
        """
        super(ViewMessage, self).__init__(parent)

        #connect plugins for video
        QWebSettings.globalSettings().setAttribute(QWebSettings.PluginsEnabled,
                                                   True)
        QWebSettings.globalSettings().setAttribute(QWebSettings.JavaEnabled,
                                                   True)
        #our proxy(if it is needed)
        #from PyQt4.QtNetwork import QNetworkProxy
        #proxy = QNetworkProxy(QNetworkProxy.HttpProxy, "proxy.karelia.ru", 81)
        #QNetworkProxy.setApplicationProxy(proxy)
                      
        self.view_mes_widget = QWebView()
        self.view_mes_widget.setUrl(QtCore.QUrl("embed.html"))
       
        self.view_mes_widget.show()
        self.setCentralWidget(self.view_mes_widget)
        self.show()
[/code]
 Only second example display media, though file "embed.html" contains  the same html code. 
P.S.:
Just in case this is a code from "main.py" file:

[code]
import sys
import os

def main():
    """
    this function starts application
    """

    from PyQt4 import QtGui
    app = QtGui.QApplication(sys.argv) # Note: we can't draw dialog box in
  
    from ViewMessage import ViewMessage
    home_window = ViewMessage()
   
    app.exec_()
    sys.exit()

if __name__ == "__main__":
    os.chdir(os.path.dirname(os.path.abspath(sys.argv[0])))
    main()

[/code]

lagutinans
You can also ask here http:/
roxannakel
Add new comment | Open Innovations Framework Program FRUCT

Hmm it looks like your site ate my first comment (it was extremely long) so
I guess I'll just sum it up what I had written and say, I'm thoroughly enjoying your blog.
I too am an aspiring blog writer but I'm still
new to everything. Do you have any points for rookie
blog writers? I'd definitely appreciate it.

Also visit my web site :: Live Psychic

manuelahai
Add new comment | Open Innovations Framework Program FRUCT

I am genuinely grateful to the holder of this web page who has shared this impressive
post at at this time.

My page ... psychic Affiliates Management

roxannakel
Add new comment | Open Innovations Framework Program FRUCT

I am sure this article has touched all the internet people, its really really pleasant piece of writing
on building up new weblog.

Here is my site - tarot card reading

roxannakel
Add new comment | Open Innovations Framework Program FRUCT

Hi there friends, its fantastic piece of writing about educationand entirely defined, keep it up all the time.

Also visit my page - genuine love Psychics

roxannakel
Add new comment | Open Innovations Framework Program FRUCT

Lovely just what I was looking for. Thanks to the author for taking
his clock time on this one.

My web blog ... Avis

roxannakel
Add new comment | Open Innovations Framework Program FRUCT

Hi there! Do you know if they make any plugins to assist with SEO?
I'm trying to get my blog to rank for some targeted keywords but I'm not
seeing very good results. If you know of any please share.

Cheers!

Feel free to surf to my web blog ... Accurate psychic Readings

roxannakel
Add new comment | Open Innovations Framework Program FRUCT

Hi there mates, its enormous piece of writing concerning
educationand entirely explained, keep it up all the time.

Also visit my web page; love psychic readings

roxannakel
Add new comment | Open Innovations Framework Program FRUCT

Hmm it looks like your website ate my first comment (it was super long) so I
guess I'll just sum it up what I submitted and say, I'm thoroughly enjoying
your blog. I too am an aspiring blog writer but I'm still new to everything.
Do you have any helpful hints for beginner blog writers?
I'd genuinely appreciate it.

Take a look at my web site free Psychic love Reading

roxannakel
Add new comment | Open Innovations Framework Program FRUCT

Excellent, what a website it is! This web site gives useful data to
us, keep it up.

My web blog - psychic Reading

roxannakel
Add new comment | Open Innovations Framework Program FRUCT

Hello. remarkable job. I did not anticipate this. This is
a splendid story. Thanks!

My blog post Psychic source

earthamort
Add new comment | Open Innovations Framework Program FRUCT

What's up, this weekend is good in favor of me, since this time i am reading this wonderful informative paragraph
here at my home.

Feel free to visit my website; psychic and Astrology affiliates meaning in tamil

roxannakel
Add new comment | Open Innovations Framework Program FRUCT

Good response in return of this question with firm arguments and describing the whole thing on the topic of
that.

My page ... perfect Psychic network

rodgrimley
Add new comment | Open Innovations Framework Program FRUCT

Hello there, just became aware of your blog through Google,
and found that it's really informative. I'm going to watch out for brussels.
I will appreciate if you continue this in future. Many people will be benefited from
your writing. Cheers!

My web-site Astrology Affiliate Programs

roxannakel
Add new comment | Open Innovations Framework Program FRUCT

Superb, what a webpage it is! This web site gives valuable data to us, keep it up.

Also visit my web blog ... Psychic development

roxannakel
Add new comment | Open Innovations Framework Program FRUCT

Wow! At last I got a webpage from where I be capable of actually obtain helpful
data regarding my study and knowledge.

Here is my site - Love psychics

rodgrimley
Add new comment | Open Innovations Framework Program FRUCT

Hey I know this is off topic but I was wondering if you knew
of any widgets I could add to my blog that automatically tweet
my newest twitter updates. I've been looking for a plug-in like this for quite some time and
was hoping maybe you would have some experience with something like this.
Please let me know if you run into anything. I truly enjoy reading your blog and I look
forward to your new updates.

Have a look at my site Www.Facebook-Danger.fr

roxannakel
Add new comment | Open Innovations Framework Program FRUCT

Hello, this weekend is fastidious in favor of
me, for the reason that this moment i am reading this fantastic educational post here at my house.

Here is my web-site ... Psychic answers

earthamort
Add new comment | Open Innovations Framework Program FRUCT

Hurrah! In the end I got a blog from where I be capable of truly take valuable information regarding my study and knowledge.

Also visit my homepage ... Oren

earthamort
Add new comment | Open Innovations Framework Program FRUCT

Asking questions are truly good thing if you are not understanding something fully, but this article
provides good understanding even.

Also visit my web blog Sherrill

roxannakel
Add new comment | Open Innovations Framework Program FRUCT

I could not resist commenting. Perfectly written!

Here is my blog :: Sheree

jeffkleibe
Add new comment | Open Innovations Framework Program FRUCT

It's actually very complicated in this full of activity
life to listen news on Television, therefore I simply use
the web for that reason, and take the hottest information.

My website Rubin

lillianava
Add new comment | Open Innovations Framework Program FRUCT

Greetings! This is my first visit to your blog! We are a group of volunteers and starting
a new initiative in a community in the same niche. Your blog provided us
valuable information to work on. You have done a extraordinary job!

my webpage ... Psychic And Astrology Affiliates In Gastroenterology John

rodgrimley
Add new comment | Open Innovations Framework Program FRUCT

Definitely believe that which you said. Your favorite justification seemed to be on the net the simplest thing to be aware of.
I say to you, I certainly get annoyed while people consider worries that they just don't know about.
You managed to hit the nail upon the top and defined out the whole thing without having side-effects , people could take a
signal. Will probably be back to get more. Thanks

Here is my web blog; Employee-relations.Ipt.pw

roxannakel
Add new comment | Open Innovations Framework Program FRUCT

Lovely just what I was searching for. Thanks to the author for taking his clock time on this one.

My page :: Free Psychic Presents

roxannakel
Add new comment | Open Innovations Framework Program FRUCT

Nice respond in return of this question with solid arguments and telling everything concerning that.

Here is my web blog ... How to read tarot cards

roxannakel
Add new comment | Open Innovations Framework Program FRUCT

Lovely just what I was looking for. Thanks to the author for taking his clock
time on this one.

Here is my homepage - astrology readings

roxannakel
Add new comment | Open Innovations Framework Program FRUCT

Hi there, this weekend is good in support of me, as this occasion i am reading
this impressive informative piece of writing here at my house.

Feel free to surf to my homepage Margarita

roxannakel
Add new comment | Open Innovations Framework Program FRUCT

Hmm it looks like your blog ate my first comment (it was super long)
so I guess I'll just sum it up what I had written and
say, I'm thoroughly enjoying your blog. I too am an aspiring blog
blogger but I'm still new to the whole thing.
Do you have any suggestions for first-time blog writers? I'd genuinely appreciate it.

Here is my web-site :: http://singharoyfamily.net/punbb/viewtopic.php?Pid=686134

roxannakel
Add new comment | Open Innovations Framework Program FRUCT

I have to convey my gratitude for your kind-heartedness for individuals who must have assistance with the topic.
Your real dedication to getting the solution all through
appears to be remarkably valuable and have usually encouraged employees much like
me to get to their goals. This important tips and hints entails
a great deal to me and extremely more to my office
colleagues. Regards; from everyone of us.

Also visit my website - psychic Mediums

bennietown
Add new comment | Open Innovations Framework Program FRUCT

Wonderful blog! I found it while browsing on Yahoo
News. Do you have any suggestions on how to get listed in Yahoo
News? I've been trying for a while but I never seem to get there!
Thanks

Also visit my page :: psychic and astrology affiliates In gastroenterology patient

roxannakel
Add new comment | Open Innovations Framework Program FRUCT

An interesting discussion is worth comment. I do believe that you need to write more about this issue,
it might not be a taboo subject but typically people do not talk about these issues.
To the next! Many thanks!!

Also visit my blog - Psychic medium

adriennepo
Add new comment | Open Innovations Framework Program FRUCT

Good site you've got here.. It?s difficult to find excellent writing like yours these days.

I honestly appreciate individuals like you! Take care!!

My blog telephone psychic love

roxannakel
Add new comment | Open Innovations Framework Program FRUCT

Wow! After all I got a web site from where I be capable of actually get useful data regarding my study and knowledge.

Feel free to visit my web-site - Readings Services

gradyoakes
Add new comment | Open Innovations Framework Program FRUCT

I really like your blog.. very nice colors & theme. Did you create this website yourself or
did you hire someone to do it for you? Plz answer back as I'm looking to design my own blog and
would like to find out where u got this from. thank
you

Here is my site; Noella

roxannakel
Add new comment | Open Innovations Framework Program FRUCT

Lovely just what I was searching for. Thanks to the author
for taking his clock time on this one.

my web site; Psychic Love Reading

roxannakel
Add new comment | Open Innovations Framework Program FRUCT

Hello there! Do you know if they make any plugins to assist with Search Engine Optimization? I'm trying to
get my blog to rank for some targeted keywords but I'm not seeing very good gains.
If you know of any please share. Thank you!

Here is my homepage ... Psychic readings Work

roxannakel
Add new comment | Open Innovations Framework Program FRUCT

Nice answer back in return of this issue with real arguments and
telling the whole thing about that.

my homepage - Singharoyfamily.net

roxannakel
Add new comment | Open Innovations Framework Program FRUCT

Hurrah! In the end I got a website from where I can genuinely take helpful facts concerning my study and knowledge.

Have a look at my web page - Baby Gifts

roxannakel
Add new comment | Open Innovations Framework Program FRUCT

Fastidious response in return of this issue with real arguments and describing the whole thing about that.

my web page :: love Psychic. psychics readings

roxannakel
Add new comment | Open Innovations Framework Program FRUCT

I am really pleased to glance at this website posts which contains plenty of useful facts,
thanks for providing these kinds of statistics.

Stop by my website http://Showyourgallery.xyz/

roxannakel
Add new comment | Open Innovations Framework Program FRUCT

Lovely just what I was searching for. Thanks to the author for
taking his time on this one.

Here is my web-site: psychic readings Online

earthamort
Add new comment | Open Innovations Framework Program FRUCT

naturally like your web-site however you need to check
the spelling on several of your posts. Many of them are rife with spelling issues and I to find
it very bothersome to tell the truth then again I will surely come back again.

Feel free to visit my web page :: psychic and astrology affiliates meaning in tamil

roxannakel
Add new comment | Open Innovations Framework Program FRUCT

It is the best time to make some plans for the future and it's time to be happy.
I've read this post and if I could I desire to suggest you few interesting things
or advice. Maybe you could write next articles referring to this
article. I desire to read even more things about it!

Feel free to surf to my site: psychic Advice

roxannakel
Add new comment | Open Innovations Framework Program FRUCT

I am sure this article has touched all the internet people, its really
really pleasant paragraph on building up new blog.

my web site :: Free psychics

raleighcra
Add new comment | Open Innovations Framework Program FRUCT

Does your site have a contact page? I'm having a tough time locating it but, I'd like to send you an e-mail.
I've got some creative ideas for your blog you might be interested in hearing.

Either way, great blog and I look forward to seeing
it develop over time.

Feel free to surf to my web blog; psychic and astrology affiliates in gastroenterology patient

raleighcra
Add new comment | Open Innovations Framework Program FRUCT

What's up Dear, are you truly visiting this website on a regular basis, if so afterward you will absolutely take pleasant knowledge.

Feel free to visit my blog: psychic Affiliates in dermatology

roxannakel
Add new comment | Open Innovations Framework Program FRUCT

I couldn't refrain from commenting. Very well written!

My site; Psychic Ability

estellabyr
Add new comment | Open Innovations Framework Program FRUCT

Hi, I do think this is a great blog. I stumbledupon it ;) I'm going to return once again since i have
bookmarked it. Money and freedom is the best way to change,
may you be rich and continue to help others.

Here is my web blog Https://Zoneclassifieds.Com/

roxannakel
Add new comment | Open Innovations Framework Program FRUCT

Hurrah! At last I got a website from where I can really take
useful facts regarding my study and knowledge.

Feel free to visit my web site: Patrick

Pages

Log in or register to post comments