Submission deadline in::

Welcome to visit Open Karelia:

You are here

Problem with progress bar(PyQt)

568 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

A fascinating discussion is definitely worth comment.
I think that you ought to publish more on this topic, it may not be a taboo subject but typically people don't talk about these subjects.

To the next! Many thanks!!

my web blog Find love Psychic readin

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

lillianava
Add new comment | Open Innovations Framework Program FRUCT

Thanks for the marvelous posting! I quite enjoyed reading it, you happen to
be a great author. I will ensure that I bookmark your blog and
definitely will come back someday. I want to encourage you continue
your great writing, have a nice day!

Look into my website psychic Affiliates Management

johnnyfinc
Add new comment | Open Innovations Framework Program FRUCT

Hi, after reading this awesome piece of writing
i am too happy to share my knowledge here with mates.

my webpage: psychic and Astrology affiliates in Medical specialties medical group

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

estellabyr
Add new comment | Open Innovations Framework Program FRUCT

Heya are using Wordpress for your site platform? I'm new to the blog world but I'm trying to get started and create my own. Do you require any
coding knowledge to make your own blog? Any help
would be really appreciated!

my web page - Psychic Affiliates In Obstetrical & Gynecological Care

earthamort
Add new comment | Open Innovations Framework Program FRUCT

I think the admin of this web page is in fact working hard for his site, since here every material is
quality based material.

Also visit my website - Psychic and astrology affiliate Programs

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

An interesting discussion is worth comment. There's no doubt that that
you ought to write more about this topic, it may not be a taboo subject but generally folks don't discuss
such subjects. To the next! Kind regards!!

Here is my homepage Selene

roxannakel
Add new comment | Open Innovations Framework Program FRUCT

I couldn't refrain from commenting. Well written!

Here is my web site :: lost love

roxannakel
Add new comment | Open Innovations Framework Program FRUCT

Hi there mates, its fantastic article regarding
tutoringand fully defined, keep it up all the time.

Here is my homepage Psychic Phone

roxannakel
Add new comment | Open Innovations Framework Program FRUCT

I do not leave many responses, but i did some searching and wound
up here Add new comment | Open Innovations Framework Program FRUCT.
And I actually do have some questions for you if you don't mind.
Could it be simply me or does it look like some of these responses
appear like they are written by brain dead people? :-P
And, if you are posting on other social sites, I'd like to
follow everything new you have to post. Would you make a list
of all of your social sites like your Facebook page, twitter
feed, or linkedin profile?

Also visit my webpage ... traveller psychic

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

roxannakel
Add new comment | Open Innovations Framework Program FRUCT

It is perfect time to make some plans for the future and
it's time to be happy. I have read this post and if I could I wish
to suggest you some interesting things or suggestions.

Perhaps you can write next articles referring to this article.
I want to read even more things about it!

Also visit my blog; Reading eagle

raleighcra
Add new comment | Open Innovations Framework Program FRUCT

Informative article, exactly what I wanted to
find.

Also visit my web page psychic and Astrology affiliates in gastroenterology patient

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

Pages

Log in or register to post comments