pyqt4

how to insert data from lineEdit to tableWidget in PyQt4 ?

Hello, I am new in PyQt,currently working on a form where user will insert data into lineEdit and after submitting the data will be shown in the tablewidget. I am reading data fro lineEdit and printing it but unfortunately not finding any way to add lineEdit data to the tableWidget.The data should appear in the exact cell. It will be ve...

QComboBox replacing edit text if case differs from existing item.

Hi I'm having a problem with QComboBox not allowing me to change the edit text to anything existing item of differing case. Example code is below. What I'd like to do is enter 'one' into a combo box already containing the item 'One' without the side effect of the text being changed to 'One'. Currently it's changed back to 'One' as...

easy_install does not work in Windows 7

I have Python 2.6.4 installed in C:\Python26. I have PyQt4 installed from here: http://www.riverbankcomputing.co.uk/static/Downloads/PyQt4/PyQt-Py2.6-gpl-4.7.7-1.exe I have added this path to %PATH%: C:\Python26;C:\Python26\Scripts When I type this command in cmd.exe however: easy_install cheetah I get this error: C:\Users\Richa...

Whether i can use MS Access in PyQt4 application?

it is possible to do it ? then how to do it ? ...

PyQt QTableWidget Suspend/Resume columnResized Event

Hi .. my application has a QTableWidget with 2 columns. These columns can be re-sized by user or by routine. I have a routine to resize these columns and columnResized event handler. This event gets called for each column. But when my routine is resizing it I want this handler to get called once I have resized both the columns. As my...

What Should i do to get PyQt4 working?

Installed python-qt4 and pyqt4-dev-tools packages on ubuntu Python 2.6.6 (r266:84292, Sep 15 2010, 15:52:39) [GCC 4.4.5] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from PyQt4 import QtGui Traceback (most recent call last): File "<stdin>", line 1, in <module> RuntimeError: the sip module imple...

Get active window title in X

I'm trying to get the title of the active window. The application is a background task so if the user has Eclipse open the function returns "Eclipse - blabla", so it's not getting the window title of my own window. I'm developing this in Python 2.6 using PyQt4. My current solution, borrowed and slightly modified from an old answer here ...

Keyboard/Mouse hooks in python in X

What's a good way of getting keyboard/mouse events in Python in X? I don't the actual character, just the event that any key or mouse button has been pressed. I'm developing this using Python 2.6 and PyQt4. On windows pyHook was dead easy to get going, seems harder to get something working on Linux. I read an old answer about XGrabKeyb...

Creating and returning a value from a custom dialog box in pyqt?

I've been building a small application in pyQT and I've run into a problem. I'd like to create a modal dialog box that appears on launching the application and collects some input from the user (probably a set of checkboxes that will be populated at runtime). I'm unsure of the best way to accomplish this. Should I subclass QDialog (and i...

Can't set full range on QSpinBox

I'm trying to create a QSpinBox that accepts all numbers, but I'm having some trouble with hte maximums sbox = QSpinBox(self) sbox.setRange(-sys.maxint/88-1, sys.maxint/86) sbox.setValue(int(setting.value)) I wanted to just use sbox.setRange(-sys.maxint-1, sys.maxint) but then I couldn't enter anything, if I increase the range any ...

Pyqt save dom to file

Why this code does not work ? I want save dom after js execute at this page and i want use qt without gui. Sorry for my English. #coding:utf-8 from PyQt4 import QtCore, QtWebKit class Sp(): def save(self): print "call" data = self.webView.page().currentFrame().documentElement().toInnerXml() open("htm","w")....

Difference between qt and PyQt4

Well I am new to Qt and found its easier to work with python , I dont know how far its true . but some of the code snippets have import qt and some have import PyQt4 I don't know what the difference is, when I tried to interchange them I did get some errors , like some function was not recognizable and so on, also I am tryi...

PyQt4: Removing a child from its parent

I've created two uis using the Qt Designer, imported them into my script and set them in the normal way using the setupUi() method. When a button is clicked, and the appropriate method is executed, the new ui is loaded, but all of the widgets and connections from the old one persist. What is the proper way to remove the connections and ...

Why is PyQt connect() syntax so verbose?

I'm just learning PyQt and looking at the Signals and Slots mechanism. I'm a bit baffled by the verbose syntax. Why do we have: self.connect(dial, SIGNAL("valueChanged(int)"), spinbox.setValue) I would much prefer to write the following: self.connect(dial.valueChanged, spinbox.setValue) Can anyone tell me why the connect() syntax n...

Hide PyQt app from taskbar

Hi, I'm a beginner in PyQt. I was trying to create a simple app to try some of the toolkit's many features. My question is, how can I hide the app icon from the taskbar? I don't want the user to be able to see the icon in taskbar and to minimize it using this icon. Is there any window flags that I can use to achieve this? ...