[PyQt] pip install pyqt error

2010-07-17 Thread patx
When I try to use pip to install PyQt from PyPi. However I get an error
saying there is no setup.py in the tarball it download. Maybe someone would
fix this? Maybe its me?

-- 
Harrison Erd (PATX) - http://patx.me/
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] HELP with QtWebkit.

2010-04-28 Thread patx
I have the code
http://guest:gu...@patx.me/hg/fastpatx/file/6e5ce46a49f9/fastpatx.py i need
to know how i can make function that will allow users to right click a link
and then open the link in a new tab... can someone please show me how to do
this. i am stumped... (feel free to paste code at a popular pastebin site).

thanks s much!

-- 
patx - http://patx.me/
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] help on reconnecting a progress bar...

2010-03-14 Thread patx
Sorry, I just changed that link... The code is on
http://guest:gu...@patx.me/hg/fastpatx/file/a9c3af952923/fastpatx.py.

On Sat, Mar 13, 2010 at 11:49 PM, patx pat...@gmail.com wrote:

 I am using the code at
 http://guest:gu...@patx.me/hg/fastpatx.py/file/e40662862c35/fastpatx.py.
 It is my web browser. I need to make it where when a user opens a new tab,
 the progress bar will connect. ATM, the progress bar works in the first tab,
 but just stays at 100% in a second tab... Somehow I need to reconnect this,
 but I can not seem to find out how... Can someone please tell me or show me
 (if you feel like showing, paste the code somewhere?). Thanks!

 --
 patx - http://patx.me/




-- 
patx - http://patx.me/
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] help on reconnecting a progress bar...

2010-03-13 Thread patx
I am using the code at
http://guest:gu...@patx.me/hg/fastpatx.py/file/e40662862c35/fastpatx.py. It
is my web browser. I need to make it where when a user opens a new tab, the
progress bar will connect. ATM, the progress bar works in the first tab, but
just stays at 100% in a second tab... Somehow I need to reconnect this, but
I can not seem to find out how... Can someone please tell me or show me (if
you feel like showing, paste the code somewhere?). Thanks!

-- 
patx - http://patx.me/
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] how to open a gui module?

2010-03-02 Thread patx
I have coded a GUI, in a .py... It is called foo.py. Then in another GUI,
bar.py, I need to be able to open/display/execute foo.py. So basically I
need to use the following:

self.connect(self.pb1, QtCore.SIGNAL('clicked()'),
self.open_foo)

So self.pb1 would be a PushButton and self.open_foo would be the function
that would open foo.py.


How would I do this?

-- 
patx, patx.me
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] fastPATX Panther for your speedy web browsing needs!

2009-11-03 Thread patx
fastPATX Panther is now out! It beats Firefox on startup and is very
lightweight you have to try it!

Download here: http://bitbucket.org/patx/fastpatx/fastpatx-panther.py

-- 
patx, python gui and web, http://patx.me
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] close tabs?

2009-08-30 Thread patx
I have the code http://codepad.org/bAV10oAr. I can not figure out how to
close the tabs. Can someone tell me what I need to do, I have the tab
indexes in a list. Thanks, PATX.
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] help on a attribute error

2009-07-04 Thread patx
I am using

 def viewSrc(self):
  self.browser.toHTML

And I get the attribute error no toHTML. Why is this? I am importing PyQt4
like:

from PyQt4 import QtCore, QtGui
from PyQt4 import QtWebKit
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] TypeError Help. ASAP.

2009-07-04 Thread patx
*I am currently trying to run:*

#!/usr/bin/env python

# by patx | driver rowinggolfer
# version fawn | GNU GPL v3
# patx44.appspot.com/fastpatx
# other helpers: azazel, trsh,
# and people from #pyqt on freenode.

import sys
import subprocess
import time
from buzhug import Base
from PyQt4 import QtCore, QtGui
from PyQt4 import QtWebKit

class fastpatx(QtGui.QWidget):

def bookmarkfun(self):
bookurl = self.lineEdit.text
bookdb = Base('faves').create(('url',str),mode='open')
bookdb.insert(url=bookurl)
bookwn = QtGui.QMessageBox.question(self,fastPATX,
The page has been marked.,
QtGui.QMessageBox.Ok)

def viewSrc(self):
html = self.browser.page().mainFrame().toHtml()
dialog = QtGui.QDialog(self)
text = QtGui.QPlainTextEdit(dialog)
text.setPlainText(html)
ok = QtGui.QPushButton(dialog)
ok.setText('Ok')
ok.setDefault(True)
self.connect(ok, QtCore.SIGNAL('clicked()'),
 dialog.accept)
layout = QtGui.QVBoxLayout()
layout.addWidget(text)
layout.addWidget(ok)
dialog.setLayout(layout)
dialog.exec_()


def goHome(self):
self.browser.setUrl(QtCore.QUrl(http://www.google.com;))

def setCurl(self,url):
self.curl=url
self.urlString=url.toString()

def GoLink(self):
self.browser.load(self.curl)
self.page=self.browser.page()
self.page.setLinkDelegationPolicy(
QtWebKit.QWebPage.DelegateAllLinks)

def linkClicked(self,url):
self.setCurl(url)
self.GoLink()

def loadStarted(self):
print loading page...,

def loadFinished(self,arg):
print load finished...,
if arg:
print sucess
else:
print failed
self.offerDownload()

def offerDownload(self):
result=QtGui.QMessageBox.question(self,Download File,
download file br /%s%self.urlString,
QtGui.QMessageBox.Yes,QtGui.QMessageBox.No)

if result == QtGui.QMessageBox.Yes:
p=subprocess.Popen(['wget',self.urlString])
self.browser.setHtml(
h2Downloading your file.../h2
hrPowered by a href=http://patx44.appspot.com;fastPATX/a.
)
time.sleep(2)

def lineEdited(self):
self.setCurl(QtCore.QUrl(self.lineEdit.text()))
self.GoLink()

def updateLineEdit(self,url):
self.setCurl(url)
self.lineEdit.setText(self.curl.toString())

def __init__(self):
QtGui.QWidget.__init__(self)

self.setCurl(QtCore.QUrl(http://www.google.com;))

self.lineEdit = QtGui.QLineEdit()
self.pushButton = QtGui.QPushButton('Go')
self.homeButton = QtGui.QPushButton('Home')
self.srcButton = QtGui.QPushButton('Source')
self.bookmark = QtGui.QPushButton('Bookmark')
self.browser = QtWebKit.QWebView()

tab = QtGui.QGridLayout()
tab.setSpacing(5)

tab.addWidget(self.browser, 0, 0, 1, 5)
tab.addWidget(self.lineEdit, 2, 0)
tab.addWidget(self.pushButton, 2, 1)
tab.addWidget(self.homeButton, 2, 2)
tab.addWidget(self.srcButton, 2, 3)
tab.addWidget(self.bookmark, 2, 4)

self.setLayout(tab)
self.setWindowTitle('fastPATX')

self.connect(self.lineEdit, QtCore.SIGNAL('returnPressed()'),
self.lineEdited)
self.connect(self.pushButton, QtCore.SIGNAL('clicked()'),
self.lineEdited)
self.connect(self.homeButton, QtCore.SIGNAL('clicked()'),
 self.goHome)
self.connect(self.srcButton, QtCore.SIGNAL('clicked()'),
 self.viewSrc)
self.connect(self.bookmark, QtCore.SIGNAL('clicked()'),
 self.bookmarkfun)
self.connect(self.browser, QtCore.SIGNAL('linkClicked (const
QUrl)'),
self.linkClicked)
self.connect(self.browser, QtCore.SIGNAL('urlChanged (const
QUrl)'),
self.updateLineEdit)
self.connect(self.browser, QtCore.SIGNAL('loadStarted ()'),
self.loadStarted)
self.connect(self.browser, QtCore.SIGNAL('loadFinished (bool)'),
self.loadFinished)

self.GoLink()

app = QtGui.QApplication(sys.argv)

win = fastpatx()

win.show()

sys.exit(app.exec_())

*I get the error:

*  File fastpatx-fawn-alpha.py, line 21, in bookmarkfun
bookdb.insert(url=bookurl)
  File /usr/local/lib/python2.6/dist-packages/buzhug/buzhug.py, line 515,
in insert
self._validate(k,v)
  File /usr/local/lib/python2.6/dist-packages/buzhug/buzhug.py, line 978,
in _validate
%(k,self.fields[k],v,v.__class__)
TypeError: Bad type for url : expected type 'str', got built-in method
text of QLineEdit object at 0xa114cac type 'builtin_function_or_method'
load finished... sucess

What am I doing wrong? Please help!

-- 
patx, python gui
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] best dvcs

2009-07-03 Thread patx
I am a PyQt4 developer. I was wondering what DVCS most PyQt4 people are
using (Mercurial, git, Bazzar)? Thanks.

-- 
patx, python gui
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt