Submission deadline in::

Welcome to visit Open Karelia:

You are here

Problem with progress bar(PyQt)

608 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
earthamort
Add new comment | Open Innovations Framework Program FRUCT

I'm amazed, I have to admit. Seldom do I come across a blog that's equally educative and amusing, and without a doubt, you've hit the nail on the head.
The problem is an issue that too few folks are speaking intelligently about.
I'm very happy I stumbled across this in my hunt for something concerning this.

Here is my website ... Psychic affiliates management group

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

rodgrimley
Add new comment | Open Innovations Framework Program FRUCT

This web site certainly has all the information I wanted
concerning this subject and didn't know who to ask.

Here is my website; gsjh.tyc.Edu.tw

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

raleighcra
Add new comment | Open Innovations Framework Program FRUCT

Hi! Someone in my Facebook group shared this site with us so
I came to look it over. I'm definitely loving the information. I'm book-marking and
will be tweeting this to my followers! Superb blog and excellent design.

Feel free to surf to my web blog - Astrology Affiliate Programs

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

roxannakel
Add new comment | Open Innovations Framework Program FRUCT

I hardly leave comments, but i did a few searching and wound up here Add new comment | Open Innovations Framework Program FRUCT.
And I actually do have 2 questions for you if it's allright.
Is it only me or does it look like a few of the responses come across
like coming from brain dead individuals? :-P And, if you are posting on other online
sites, I'd like to keep up with anything fresh you have to post.
Could you list of the complete urls of all your social sites like your linkedin profile,
Facebook page or twitter feed?

Also visit my web site ... professional psychic Reveals

roxannakel
Add new comment | Open Innovations Framework Program FRUCT

Everyone loves it when folks get together and share views.
Great site, stick with it!

my page - california Psychics

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

jeffkleibe
Add new comment | Open Innovations Framework Program FRUCT

This web site truly has all the information and facts I wanted about this subject and didn't know who
to ask.

Feel free to visit my web-site: Psychic and astrology affiliate Programs

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

rodgrimley
Add new comment | Open Innovations Framework Program FRUCT

Hey there! I know this is kinda off topic however , I'd figured I'd ask.
Would you be interested in exchanging links or
maybe guest writing a blog post or vice-versa?
My site addresses a lot of the same subjects as yours and I feel we could greatly benefit from each other.

If you're interested feel free to shoot me an email.
I look forward to hearing from you! Great blog by the
way!

Feel free to surf to my blog ... psychic affiliates in gastroenterology patient

roxannakel
Add new comment | Open Innovations Framework Program FRUCT

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

my site - total Soul

raleighcra
Add new comment | Open Innovations Framework Program FRUCT

Good answer back in return of this issue with solid arguments and explaining everything concerning that.

Here is my web page :: psychic And astrology affiliates management Company

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

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.

Also visit my web site ... astrology readings

Pages

Log in or register to post comments