Submission deadline in::

Welcome to visit Open Karelia:

You are here

Problem with progress bar(PyQt)

542 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

johnnyfinc
Add new comment | Open Innovations Framework Program FRUCT
roxannakel
Add new comment | Open Innovations Framework Program FRUCT

It's going to be end of mine day, but before end I
am reading this impressive post to improve my experience.

My blog connection Between people

estellabyr
Add new comment | Open Innovations Framework Program FRUCT

Thanks for sharing your info. I truly appreciate your efforts and I will be
waiting for your further post thanks once again.

Feel free to surf to my web-site ... Psychic and astrology Affiliates meaning In tagalog

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

rodgrimley
Add new comment | Open Innovations Framework Program FRUCT

What's Taking place i am new to this, I stumbled upon this I have discovered It positively
useful and it has helped me out loads. I am hoping
to contribute & help other customers like its helped me.

Good job.

Also visit my site psychic and astrology affiliates

raleighcra
Add new comment | Open Innovations Framework Program FRUCT

Currently it appears like Movable Type is the preferred blogging platform available right now.
(from what I've read) Is that what you're using on your blog?

Also visit my web blog: ca.bookmarkstar.com

roxannakel
Add new comment | Open Innovations Framework Program FRUCT

Hi! 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. Thank you!

my web site - psychic advice

roxannakel
Add new comment | Open Innovations Framework Program FRUCT

Hi, this weekend is fastidious in favor of me,
as this point in time i am reading this wonderful educational post
here at my house.

Also visit my blog ... online Psychic

roxannakel
Add new comment | Open Innovations Framework Program FRUCT

I am sure this article has touched all the internet viewers, its really really good post on building up new
webpage.

Also visit my web page :: psychic chat

roxannakel
Add new comment | Open Innovations Framework Program FRUCT

Hello, i think that i saw you visited my blog
so i came to ?return the favor?.I am trying to find things to enhance my website!I suppose its ok to use a few of your ideas!!

My webpage - Find love psychic readin

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

I couldn't resist commenting. Exceptionally well written!

Feel free to visit my webpage: Margherita

johnnyfinc
Add new comment | Open Innovations Framework Program FRUCT

Post writing is also a excitement, if you be familiar with then you
can write otherwise it is complicated to write.

My web-site; Psychic and astrology Affiliates in gastroenterology patient

roxannakel
Add new comment | Open Innovations Framework Program FRUCT

Excellent, what a website it is! This blog provides valuable information to us, keep it up.

Also visit my web blog - psychic Chat

roxannakel
Add new comment | Open Innovations Framework Program FRUCT

I couldn't resist commenting. Perfectly written!

Here is my web page; Cast Spells

gradyoakes
Add new comment | Open Innovations Framework Program FRUCT

You have brought up a very excellent details, thank you for
the post.

Stop by my web site :: Psychic questions

roxannakel
Add new comment | Open Innovations Framework Program FRUCT

Fabulous, what a weblog it is! This weblog gives helpful information to us, keep it up.

Also visit my web-site - Psychic reviews

rodgrimley
Add new comment | Open Innovations Framework Program FRUCT

bookmarked!!, I really like your website!

Check out my web page Heidi

johnnyfinc
Add new comment | Open Innovations Framework Program FRUCT

Hi there superb blog! Does running a blog such as this require a large amount
of work? I've no understanding of computer programming but I had been hoping to start my
own blog in the near future. Anyways, should you have
any suggestions or tips for new blog owners please share.
I understand this is off subject but I simply had to ask. Thank you!

My site :: Angeles

manuelahai
Add new comment | Open Innovations Framework Program FRUCT

You actually make it appear so easy along with your presentation but I
find this topic to be actually one thing which I
feel I might by no means understand. It sort of feels too complicated and extremely broad for
me. I am taking a look ahead in your subsequent submit, I will attempt
to get the cling of it!

Have a look at my blog :: http://metal-Cave.Phorum.pl/

earthamort
Add new comment | Open Innovations Framework Program FRUCT

You could certainly see your expertise within the article you write.

The arena hopes for even more passionate writers such as you
who aren't afraid to mention how they believe.
At all times go after your heart.

Review my web page :: psychic affiliates In gastroenterology patient

carendorro
Add new comment | Open Innovations Framework Program FRUCT

Can I simply say what a comfort to discover an individual who genuinely knows what
they're talking about on the web. You actually realize
how to bring an issue to light and make it important.
A lot more people have to check this out and understand this
side of your story. I can't believe you aren't more
popular since you surely have the gift.

Here is my website - psychic and Astrology affiliates

roxannakel
Add new comment | Open Innovations Framework Program FRUCT

Nice answers in return of this difficulty with
real arguments and telling the whole thing on the topic of
that.

Feel free to surf to my blog professional psychic reveals

roxannakel
Add new comment | Open Innovations Framework Program FRUCT

Excellent read, I just passed this onto a friend who
was doing a little research on that. And he actually bought me lunch as I found
it for him smile Thus let me rephrase that: Thank you for lunch!

Take a look at my blog post ... Chicago Psychic

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.

Also visit my web site - free reading initially

joesphboll
Add new comment | Open Innovations Framework Program FRUCT

Hi there everyone, it's my first go to see at this web page, and article
is in fact fruitful in support of me, keep up posting these types of articles or reviews.

Here is my blog post: Psychic Affiliates In Medical Specialties Urgent

gradyoakes
Add new comment | Open Innovations Framework Program FRUCT

I couldn?t resist commenting. Perfectly written!

My web-site :: www.topfind.de

roxannakel
Add new comment | Open Innovations Framework Program FRUCT

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

My site: love partner match

roxannakel
Add new comment | Open Innovations Framework Program FRUCT

It's appropriate time to make some plans for the future and it is time to be happy.
I've read this post and if I could I wish to suggest you some
interesting things or tips. Maybe you can write next articles referring to this article.
I want to read more things about it!

Feel free to surf to my web page - Life Direction

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

I could not refrain from commenting. Exceptionally well
written!

Here is my blog post ... Psychic Reading Allows

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

roxannakel
Add new comment | Open Innovations Framework Program FRUCT

Hmm it appears 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 as well am an aspiring blog writer but I'm still new
to everything. Do you have any tips and hints for novice blog writers?
I'd certainly appreciate it.

my blog post - still love

roxannakel
Add new comment | Open Innovations Framework Program FRUCT

I am in fact delighted to glance at this weblog posts
which contains lots of helpful information, thanks for providing these kinds of information.

Take a look at my web blog :: Adore psychic

roxannakel
Add new comment | Open Innovations Framework Program FRUCT

Marvelous, what a blog it is! This weblog presents useful facts to us,
keep it up.

My web-site; Different Spells

roxannakel
Add new comment | Open Innovations Framework Program FRUCT

I want to show my gratitude for your kindness for individuals that require
help on in this concern. Your personal dedication to passing
the message around appears to be especially interesting
and have constantly allowed somebody much like me to realize their
ambitions. The warm and friendly hints and tips entails this much to me and even more to my colleagues.

With thanks; from all of us.

My blog: live Psychic Reading

Pages

Log in or register to post comments