Hello all, I want to display a hyperlink in qt. For this i need to display the link for the url (as underlined text). I can achieve it easily using style sheets and the url can be opened with webbrowser module.. I want to get the… Discussion Thread by explorepython in Software Development
…);") self.textBrowser.setFrameShape(QtGui.QFrame.NoFrame) self.textBrowser.setObjectName("… Reply by explorepython
7 Years Ago
python def question def spinBox_Changed(self, a0, b0=785, c0=300): self.LCDNumber10.display((b0-c0)/a0) this works great if I manually have b0 and c0 values there but I need to get these variables from a slider value and spinbox valve respectively.… Discussion Thread by garyinspringhil in Software Development
…cell2.setMargin( 10 ) cell2.setFrameStyle( QFrame.WinPanel | QFrame.Sunken ) QWidget( cell2 ) label1… QHBox( row2 ) cell4.setFrameStyle( QFrame.WinPanel | QFrame.Sunken ) cell4.setMargin( 10 ) … Reply by woooee
7 Years Ago
….__win.setWindowTitle(w_title) frame = QtGui.QFrame() frame.setLineWidth(1) frame.setFrameRect… Discussion Thread by markfw in Software Development
6 Years Ago
….__win.setWindowTitle(w_title) frame = QtGui.QFrame() frame.setLineWidth(1) frame.setFrameRect… Discussion Thread by markfw in Software Development
I am guessing that the window doesn't contain anything visible, just containers. (This just displays a button.) [code]import sys from PyQt4 import QtCore, QtGui class UI_CMDTester: def __init__(self): self.__app = None self.__win = … Reply by woooee
6 Years Ago
….__win.setWindowTitle(w_title) frame = QtGui.QFrame() frame.setLineWidth(1) frame.setFrameRect… Discussion Thread by markfw in Software Development
… style ... [code]# explore QFrame() from PySide.QtCore import *…def make_frame(self): frame = QFrame(self) frame.setLineWidth(3) …frame.setFrameStyle(QFrame.Box|QFrame.Sunken) # this will … Reply by vegaseat
6 Years Ago
….__win.setWindowTitle(w_title) frame = QtGui.QFrame() frame.setLineWidth(1) frame.setFrameRect… Discussion Thread by markfw in Software Development
…, f_shape): frame = QtGui.QFrame(self) frame.setFrameShape(f_shape) …addWidget(self.__get_frame(QtGui.QFrame.Box)) h_split.addWidget(self….__get_frame(QtGui.QFrame.Box)) # Bottom Frame … Reply by markfw
6 Years Ago
….__win.setWindowTitle(w_title) frame = QtGui.QFrame() frame.setLineWidth(1) frame.setFrameRect… Discussion Thread by markfw in Software Development
…(QFrame.Box|QFrame.Sunken) frame2 = QFrame(self) frame2.setLineWidth(3) frame2.setFrameStyle(QFrame.Box|QFrame Reply by vegaseat
6 Years Ago
This 'sticky' thread is for working examples of Python GUI code. Note that most wxPython examples have their own thread. Please use comments in your code to help the reader. The example code should be usable as a template, so folks get a feel for the … Discussion Thread by vegaseat in Software Development
… your widget code here ----- frame = QFrame() frame.setLineWidth(3) # test different… #frame.setFrameStyle(QFrame.Box|QFrame.Sunken) # or frame.setFrameStyle(QFrame.Box|QFrame.Raised) frame… Reply by bumsfeld
6 Years Ago
….__win.setWindowTitle(w_title) frame = QtGui.QFrame() frame.setLineWidth(1) frame.setFrameRect… Discussion Thread by markfw in Software Development
vegaseat, I have another question: Do you know a way to get the size of QPushButton (Width, Height)? Thanks again for all your help. Mark Reply by markfw
6 Years Ago
….__win.setWindowTitle(w_title) frame = QtGui.QFrame() frame.setLineWidth(1) frame.setFrameRect… Discussion Thread by markfw in Software Development
[code]# test PySide widgets # get widget's size from PySide.QtCore import * from PySide.QtGui import * app = QApplication([]) # ----- start your widget test code ---- label = 'x'*20 button = QPushButton(label) width = button.sizeHint().width() height =… Reply by bumsfeld
6 Years Ago
….__win.setWindowTitle(w_title) frame = QtGui.QFrame() frame.setLineWidth(1) frame.setFrameRect… Discussion Thread by markfw in Software Development
Thanks everyone for helping me out. I have another question (QtCore.QProcess): Here how my program works: I have button (QtGui.QPushButton) when it gets clicked, my program should call my C compiler (GCC) and compile the source code. This works perfectly … Reply by markfw
6 Years Ago
….__win.setWindowTitle(w_title) frame = QtGui.QFrame() frame.setLineWidth(1) frame.setFrameRect… Discussion Thread by markfw in Software Development
Please start a new thread with a more specific title. Reply by vegaseat
6 Years Ago
This 'sticky' thread is for working examples of Python GUI code. Note that most wxPython examples have their own thread. Please use comments in your code to help the reader. The example code should be usable as a template, so folks get a feel for the … Discussion Thread by vegaseat in Software Development
…) self.frame1.setFrameStyle(QFrame.Box|QFrame.Sunken) self.frame2 = QFrame(self) self.frame2…) self.frame2.setFrameStyle(QFrame.Box|QFrame.Sunken) self.frame3 = QFrame(self) self.frame3… Reply by vegaseat
5 Years Ago
…1) self.line_2 = QtGui.QFrame(self.layoutWidget) self.line_2.…setFrameShape(QtGui.QFrame.VLine) self.line_2.setFrameShadow… self.line.setFrameShape(QtGui.QFrame.HLine) self.line.setFrameShadow… Discussion Thread by xopenex in Software Development
5 Years Ago
…1) self.line_2 = QtGui.QFrame(self.layoutWidget) self.line_2.…setFrameShape(QtGui.QFrame.VLine) self.line_2.setFrameShadow… self.line.setFrameShape(QtGui.QFrame.HLine) self.line.setFrameShadow… Discussion Thread by xopenex in Software Development
Here is an example how to connect a button to a label ... [code]''' run_button_label1.py a simple loader for .ui XML files generated with PySide Designer the Designer's XML file was saved as "button_label1.ui" it contains a QMainWindow form … Reply by vegaseat
5 Years Ago
…1) self.line_2 = QtGui.QFrame(self.layoutWidget) self.line_2.…setFrameShape(QtGui.QFrame.VLine) self.line_2.setFrameShadow… self.line.setFrameShape(QtGui.QFrame.HLine) self.line.setFrameShadow… Discussion Thread by xopenex in Software Development
Hello Vegaseat! Thanks for editing and commenting on my post... I am going to look into pyside, right after this! I found a tutorial, that seems to have pointed me in the right direction... covers, signals, slots, connections and methods/functions! Here… Reply by xopenex
5 Years Ago
…1) self.line_2 = QtGui.QFrame(self.layoutWidget) self.line_2.…setFrameShape(QtGui.QFrame.VLine) self.line_2.setFrameShadow… self.line.setFrameShape(QtGui.QFrame.HLine) self.line.setFrameShadow… Discussion Thread by xopenex in Software Development
The PyQT or PySide Designer creates an XML code file with extension .ui that really does not have to be translated to a Python code .py file. I find the the XML file more readable than the Python file you make from it. All you need to write is the UI … Reply by vegaseat
5 Years Ago
…1) self.line_2 = QtGui.QFrame(self.layoutWidget) self.line_2.…setFrameShape(QtGui.QFrame.VLine) self.line_2.setFrameShadow… self.line.setFrameShape(QtGui.QFrame.HLine) self.line.setFrameShadow… Discussion Thread by xopenex in Software Development
Hello again Vegas Eat! I've been reading up on pyside and trying to install throughout the day... i keep getting error messages... I hope to have it up and running soon, it sounds great! Not that I understand to much about it yet, but i'm imagining it … Reply by xopenex
5 Years Ago
…1) self.line_2 = QtGui.QFrame(self.layoutWidget) self.line_2.…setFrameShape(QtGui.QFrame.VLine) self.line_2.setFrameShadow… self.line.setFrameShape(QtGui.QFrame.HLine) self.line.setFrameShadow… Discussion Thread by xopenex in Software Development
I downloaded the 32 bit version for Python 2.7 from: [url]http://qt-project.org/wiki/PySide_Binaries_Windows[/url] The Windows self installer is called: PySide-1.1.0qt474.win32-py2.7.exe It installs easily without problems. Reply by HiHe
5 Years Ago
…1) self.line_2 = QtGui.QFrame(self.layoutWidget) self.line_2.…setFrameShape(QtGui.QFrame.VLine) self.line_2.setFrameShadow… self.line.setFrameShape(QtGui.QFrame.HLine) self.line.setFrameShadow… Discussion Thread by xopenex in Software Development
I took vegaseat's sample code and made it even simpler: [code]''' run_form_button_label1.py a simple loader for .ui XML files generated with PySide Designer the Designer's XML file was saved as "form_button_label1.ui" it contains a QWidget form… Reply by HiHe
5 Years Ago
…1) self.line_2 = QtGui.QFrame(self.layoutWidget) self.line_2.…setFrameShape(QtGui.QFrame.VLine) self.line_2.setFrameShadow… self.line.setFrameShape(QtGui.QFrame.HLine) self.line.setFrameShadow… Discussion Thread by xopenex in Software Development
Thanks HiHe, reinstalled the download from the link you provided and everything went smooth this time! And thanks for revisiting vegaseats code, I would say i'm better with html than python, which actually doesnt say much! LOL Thanks again, im working … Reply by xopenex
5 Years Ago
…1) self.line_2 = QtGui.QFrame(self.layoutWidget) self.line_2.…setFrameShape(QtGui.QFrame.VLine) self.line_2.setFrameShadow… self.line.setFrameShape(QtGui.QFrame.HLine) self.line.setFrameShadow… Discussion Thread by xopenex in Software Development
Actually, the ui_to_python translator program spits out rather complex Python code. Reply by HiHe
5 Years Ago
…1) self.line_2 = QtGui.QFrame(self.layoutWidget) self.line_2.…setFrameShape(QtGui.QFrame.VLine) self.line_2.setFrameShadow… self.line.setFrameShape(QtGui.QFrame.HLine) self.line.setFrameShadow… Discussion Thread by xopenex in Software Development
Just one more example of using PySide and the QT Designer program can be found here: [url]http://www.daniweb.com/software-development/python/threads/191210/1777652#post1777652[/url] Reply by HiHe
5 Years Ago
This 'sticky' thread is for working examples of Python GUI code. Note that most wxPython examples have their own thread. Please use comments in your code to help the reader. The example code should be usable as a template, so folks get a feel for the … Discussion Thread by vegaseat in Software Development
…) frame1.setLineWidth(3) frame1.setFrameStyle(QFrame.Box|QFrame.Sunken) # set frame1 color…) frame2.setLineWidth(3) frame2.setFrameStyle(QFrame.Box|QFrame.Sunken) sf = "QWidget… Reply by HiHe
5 Years Ago
I have made an standalone app inheriting from base class `QtGui.QFrame`, and now i want to add a floating toolbar to it the way I could have in QMainWindow, how should I do it ? Discussion Thread by krystosan in Software Development
4 Years Ago
I have made an standalone app inheriting from base class `QtGui.QFrame`, and now i want to add a floating toolbar to it the way I could have in QMainWindow, how should I do it ? Discussion Thread by krystosan in Software Development
We need some code. Reply by vegaseat
4 Years Ago
Hey i try to work on custom signal but i get an compiling error: QObject::connect: No such signal QLabel::changerSignal() in ..\textbasedrpg\FenPrincipale.cpp:173 But i seem to write exactly same thing in header and .cpp ┬╗That an big moment i try to … Discussion Thread by J-P1988 in Software Development
… QString &link ) // Inherited from QFrame void QWidget customContextMenuRequested (const QPoint… Reply by Banfa
3 Years Ago
…)"), row_clicked) ''' buts = [] frame = QtGui.QFrame(dialog) layout2 = QtGui.QHBoxLayout(frame… Discussion Thread by Tcll in Software Development
3 Years Ago
…)"), row_clicked) ''' buts = [] frame = QtGui.QFrame(dialog) layout2 = QtGui.QHBoxLayout(frame… Discussion Thread by Tcll in Software Development
bump Reply by Tcll
3 Years Ago
….setLineWidth(3) self.gui_board.setFrameStyle(QFrame.Plain) self.gui_board.setMinimumSize(400… PyQt4.QtGui import * class Game_Model(QFrame): Boardwidth = 8 Boardheight = 8 def… Discussion Thread by Dawnbox in Software Development
2 Years Ago