Re: [PyQt] Beginner troubles with QlineEdit & SQLite3

2013-06-11 Thread Josh Flinner
db. Again I just want to say thank you for your help and being patient with me. On Mon, Jun 10, 2013 at 1:32 PM, Ryan Hanson wrote: > I will reply to you on stackoverflow > > > On Mon, Jun 10, 2013 at 1:21 PM, Josh Flinner wrote: > >> Unfortunately There isn't anythin

Re: [PyQt] Beginner troubles with QlineEdit & SQLite3

2013-06-10 Thread Josh Flinner
qlite-database-in-pyqt On Mon, Jun 10, 2013 at 11:11 AM, Ryan Hanson wrote: > Look at the documentation for qlineedit.text() that should be what you > need. > On Jun 10, 2013 11:09 AM, "Josh Flinner" wrote: > >> I am able to write to the database but I cannot get the

Re: [PyQt] Beginner troubles with QlineEdit & SQLite3

2013-06-10 Thread Josh Flinner
rouble submitting that text to your database? > > For the latter you might try looking at setEditStrategy from here > http://pyqt.sourceforge.net/Docs/PyQt4/qsqltablemodel.html > > > On Mon, Jun 10, 2013 at 9:04 AM, Josh Flinner wrote: > >> I am new to both python and PyQt so

[PyQt] Beginner troubles with QlineEdit & SQLite3

2013-06-10 Thread Josh Flinner
I am new to both python and PyQt so forgive my ignorance if it is an obvious solution. I have been trying to link a couple of line edits to update a new row in a SQLite database when a push button is clicked. I can create the new row but cannot submit the data from the line edits to the row. I am a

[PyQt] embedding pyqt into a CPP app

2012-01-18 Thread Josh Stratton
I've seen a couple examples for compiling a CPP app into a pyqt-loadable module such as http://lynxline.com/qt-python-superhybrids/, but that still requires compiling an existing application down to a C++ module. Is it possible to use pyqt inside an existing CPP application to run python code simi

Re: [PyQt] how aim same function to other tables

2011-08-24 Thread Josh Stratton
Can you pull the table name out of the event object? Another option is to make a unique function for each table, which calls the addFriend function itself with the table name. That way you won't have to duplicate addFriend code. example: addFriend(event, table): def table1AddFriend(event)

Re: [PyQt] Button Color

2011-08-16 Thread Josh Stratton
> Thanks for the reply yes it is like thatĀ  When i press tab it moves to next > button but When i use this command > > print close.hasFocus() > > It prints False , Does it indicate that it dont have Focus ? > > Thank You > > On Wed, Aug 17, 2011 at 3:26 AM, Josh Stratt

Re: [PyQt] Text and Image Alignment

2011-08-16 Thread Josh Stratton
QToolbarButton has a value for putting text underneath, which may be more what you want. On Tue, Aug 16, 2011 at 3:20 PM, uahmed wrote: > HI > > I want to do alignment inĀ  image and text , i want that image should be on > center top and text should be at the bottom of image . I search for it but

Re: [PyQt] Button Color

2011-08-16 Thread Josh Stratton
That looks like the default button that has focus if you were to hit "Enter" sending an event to that button. Like if you were to hit tab, the second button would receive the focus. You can check if the button has focus by calling hasFocus() or clearing it by calling clearFocus(). That should re

Re: [PyQt] setting a uniform value

2011-08-14 Thread Josh Stratton
I really need to add an entire program? I'm passing a QGLShaderProgram and QMatrix4x4 and getting an "argument doesn't exist". Would an entire program really provide that much more information? On Sun, Aug 14, 2011 at 2:45 PM, Phil Thompson wrote: > On Sun, 14 Aug 20

[PyQt] setting a uniform value

2011-08-14 Thread Josh Stratton
I'm getting type errors sending a QMatrixr4x4 to a QGLShaderProgram. The program was taken from a C++ version of comparable code, but I'm assuming I need to do something more on the pyqt side to get the value passed over correctly? objToWorld = QMatrix4x4() flatShader.setUniformValue("objToWorld",

Re: [PyQt] boost python windget in a pyqt widget

2011-08-11 Thread Josh Stratton
Is there an example of that somewhere? Is that on the python side or the C++ side? Does that mean I cannot use boost::python and need to switch to SIP? On Thu, Aug 11, 2011 at 9:10 AM, Phil Thompson wrote: > On Thu, 11 Aug 2011 08:48:20 -0700, Josh Stratton > wrote: >> Is it pos

[PyQt] boost python windget in a pyqt widget

2011-08-11 Thread Josh Stratton
Is it possible to add qt widgets from a cmodule to a pyqt class? For example if I have a widget MyWidget in mytest.so, from pyqt import * import mytest widget = mytest.MyWidget() # C++ qt widget window = QtGui.QMainWindow() window.setCentralWidget(widget) # put C++ widget in pyqt widget window.

Re: [PyQt] PyKDE does not compile on ARM

2011-02-04 Thread Josh Knox
On 01/29/2011 12:57 PM, Jonathan Riddell wrote: -x PyQt_qreal_double doesn't seem to be working with current sip and pyqt. Anyone know why? Works for me with pyqt 4.8.3 & sip 4.12.1 compiled for ARM. Josh ___ PyQt mailing lis

Re: [PyQt] QGLWidget c++ widget works, SIP binding doesn't

2010-04-28 Thread Josh Knox
Phil Thompson wrote: On Wed, 28 Apr 2010 15:13:02 -0400, Josh Knox wrote: Josh Knox wrote: Hi All, I've got a simple custom QGLWidget that works fine when loaded from c++. (basically the Sierpinski demo) I've built a SIP binding against it, that I can load from python bu

Re: [PyQt] QGLWidget c++ widget works, SIP binding doesn't

2010-04-28 Thread Josh Knox
Josh Knox wrote: Hi All, I've got a simple custom QGLWidget that works fine when loaded from c++. (basically the Sierpinski demo) I've built a SIP binding against it, that I can load from python but it only ever displays a black area and it appears that the event loop never st

[PyQt] QGLWidget c++ widget works, SIP binding doesn't

2010-04-20 Thread Josh Knox
hes a Qt window with an all black widget area. So, given that the C++ widget works, what could I be missing that's prevent the SIP binding from running properly? I'm still new at this, so any ideas appreciated! Thanks, Josh ___ PyQ

[PyQt] SIP: name collision for ANY

2010-04-19 Thread Josh Knox
17:22:20.0 -0400 +++ sip.h.new 2010-04-19 17:22:10.0 -0400 @@ -171,9 +171,11 @@ /* Some compatibility stuff to help with handwritten code for SIP v3. */ +#if SIP_API_MAJOR_NR == 3 #if !defined(ANY) #define ANY void #endif +#endif Is that a valid work

Re: [PyQt] [SOLVED] help with designer plugin for custom widget.

2010-04-09 Thread Josh
Josh wrote: Josh wrote: Josh wrote: I've got a Qt widget and a PyQt binding. I want to make a Designer plugin for it. I have a Designer plugin as a C++ class. It works fine, I can add it to layouts, etc. Am I correct in assuming that my PyQt binding will not work to load the C++

Re: [PyQt] help with designer plugin for custom widget.

2010-04-08 Thread Josh
Josh wrote: Josh wrote: I've got a Qt widget and a PyQt binding. I want to make a Designer plugin for it. I have a Designer plugin as a C++ class. It works fine, I can add it to layouts, etc. Am I correct in assuming that my PyQt binding will not work to load the C++ class when adde

Re: [PyQt] help with designer plugin for custom widget.

2010-04-08 Thread Josh
Josh wrote: I've got a Qt widget and a PyQt binding. I want to make a Designer plugin for it. I have a Designer plugin as a C++ class. It works fine, I can add it to layouts, etc. Am I correct in assuming that my PyQt binding will not work to load the C++ class when added via

[PyQt] help with designer plugin for custom widget.

2010-04-08 Thread Josh
ting it in the right place, but I'm not sure. designer doesn't indicate any errors. Anyone have any suggestions on what to check? Thanks! Josh ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] pyqtconfig.sipconfig._config_stack has wrong paths

2010-03-11 Thread Josh
Phil Thompson wrote: On Thu, 11 Mar 2010 09:13:27 -0500, Josh wrote: Phil Thompson wrote: On Wed, 10 Mar 2010 16:49:13 -0500, Josh wrote: Hi, In my dev environment we build packages of Qt, PyQt, SIP, etc on a "central" build machine. Developers use these p

Re: [PyQt] pyqtconfig.sipconfig._config_stack has wrong paths

2010-03-11 Thread Josh
Phil Thompson wrote: On Wed, 10 Mar 2010 16:49:13 -0500, Josh wrote: Hi, In my dev environment we build packages of Qt, PyQt, SIP, etc on a "central" build machine. Developers use these packages as dependencies for their projects on their own machines. The packages are always

[PyQt] pyqtconfig.sipconfig._config_stack has wrong paths

2010-03-10 Thread Josh
hrough the elements of pyqtconfig.sipconfig._config_stack and set things up for my system (ie. string replace)? Doing that just feels wrong. Is there a better way to go about this? Thanks for any advice! Josh ___ PyQt mailing listPyQt@riverbankcomputin

Re: [PyQt] sip: QFileIconProvider is undefined

2010-03-10 Thread Josh
Josh wrote: Hi, I'm trying to build a SIP wrappers for a simple C++ subclass of QGLWidget. I keep running into this error: sip: QFileIconProvider is undefined Well I guess I was on the right path. The problem was the "-t Qt_4_6_1" in the SIP command. Despite the fact

[PyQt] sip: QFileIconProvider is undefined

2010-03-10 Thread Josh
ig.QtGLModuleMakefile(config, buildFile) print "Makefile:", makefile # Add the library we are wrapping. The name doesn't include any platform # specific prefixes or extensions (e.g. the "lib" prefix on UNIX, or the # ".dll" extension on Windows). makefile.extra_libs = [moduleName] # Generate the Makefile itself. makefile.generate() end Any pointers greatly appreciated. Josh ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] SIP and Q_PROPERTY

2010-03-03 Thread Josh
ERTYs' getters & setters are members of the class anyways, so wrapping those ought to provide the necessary functionality. Thanks for any info. Josh ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Help on "self"

2010-02-11 Thread Josh
mespace. Perhaps if the intent was to update the label dynamically, then it could be declared with self.widthLabel. That help at all? Josh ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Support for relocated Qt installations.

2010-01-11 Thread Josh
Giulio Eulisse wrote: The build system on my project is similar in that I can build stuff in one place and install it wherever I want. Relocating Qt caused me no end of headaches. All of the documented or suggested solutions never seemed to work quite right. I feel your pain... ;)

Re: [PyQt] Support for relocated Qt installations.

2010-01-11 Thread Josh
le to include qpatch as a "tool" in our build system, to automate Qt installs and relocation as necessary. PyQt ( and QT Creator) builds seamlessly against such a relocated Qt install; no qt.conf or other patching needed. Patching in such a way does reek of a hack, but that's h

[PyQt] Wrong Qt include paths when building PyQt

2009-12-11 Thread Josh
'm missing? Is there a straightforward way to get the include paths to be correct? I've been stuck on this all day. :( Figured I'd check here before doing some heinous hacks. Thanks! Josh ___ PyQt mailing listPyQt@ri

Re: [PyKDE] Eric3 on Debian Sid (broken?)

2004-04-12 Thread Josh Gilbert
Ah, that got it. For those searching the archives, I was using the wrong package for "qt". Instead of libqt3c102, I used python2.3-qt3. If the maintainer of Eric3 is out there, could you please put somewhere on your page the Debian packages required to run Eric3? Debian has a lot of packages fo