how to add floating toolbar to QFrame app in PyQt Programming Software Development by krystosan 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 ? Python, PyQT, understanding modules, classes, and objects... :) Programming Software Development by xopenex …self.line_2 = QtGui.QFrame(self.layoutWidget) self.line_2.setFrameShape(QtGui.QFrame.VLine) self.line_2.setFrameShadow(QtGui.QFrame.Sunken) self.line_2.…self.line = QtGui.QFrame(self.layoutWidget) self.line.setFrameShape(QtGui.QFrame.HLine) self.line.setFrameShadow(QtGui.QFrame.Sunken) self.line.… Re: Question about PySide Programming Software Development by vegaseat ….setLineWidth(3) frame1.setFrameStyle(QFrame.Box|QFrame.Sunken) frame2 = QFrame(self) frame2.setLineWidth(3) frame2.setFrameStyle(QFrame.Box|QFrame.Sunken) frame3 = QFrame(self) frame3.setLineWidth(3… Re: Question about PySide Programming Software Development by vegaseat … style. I would recommend the following style ... [code]# explore QFrame() from PySide.QtCore import * from PySide.QtGui import * class …self.make_frame() def make_frame(self): frame = QFrame(self) frame.setLineWidth(3) frame.setFrameStyle(QFrame.Box|QFrame.Sunken) # this will not have the effect… Re: Question about PySide Programming Software Development by markfw …# Small Cleanup def __get_frame(self, f_shape): frame = QtGui.QFrame(self) frame.setFrameShape(f_shape) return frame def __wnd_layout(self): …addWidget(h_split); del h_split v_split.addWidget(self.__get_frame(QtGui.QFrame.Box)) h_box.addWidget(v_split); del v_split self.setLayout(… Moving drawn objects in Spyder, PyQt4 Programming Software Development by Dawnbox …self) self.gui_board.setLineWidth(3) self.gui_board.setFrameStyle(QFrame.Plain) self.gui_board.setMinimumSize(400,400) self.layout…QtCore import * from PyQt4.QtGui import * class Game_Model(QFrame): Boardwidth = 8 Boardheight = 8 def __init__(self,… Question about PySide Programming Software Development by markfw ….__win.resize(w_width, w_height) self.__win.setWindowTitle(w_title) frame = QtGui.QFrame() frame.setLineWidth(1) frame.setFrameRect(QtCore.QRect(200, 200, 300… PyQt how to update QTreeView() w/o creating a new model? Programming Software Development by Tcll …, QtCore.SIGNAL("clicked (QModelIndex)"), row_clicked) ''' buts = [] frame = QtGui.QFrame(dialog) layout2 = QtGui.QHBoxLayout(frame) for person in model.people… Re: Python GUI Programming Programming Software Development by vegaseat ….frame1.setFrameStyle(QFrame.Box|QFrame.Sunken) self.frame2 = QFrame(self) self.frame2.setLineWidth(3) self.frame2.setFrameStyle(QFrame.Box|QFrame.Sunken) self.frame3 = QFrame(self) self… Re: Python GUI Programming Programming Software Development by HiHe … = '#0000FF' frame1 = QFrame(self) frame1.setLineWidth(3) frame1.setFrameStyle(QFrame.Box|QFrame.Sunken) # set frame1 color….setStyleSheet(sf) frame3 = QFrame(self) frame3.setLineWidth(3) frame3.setFrameStyle(QFrame.Box|QFrame.Sunken) sf = "… Re: python def question Programming Software Development by woooee …cell2 = QVBox( row1 ) cell2.setMargin( 10 ) cell2.setFrameStyle( QFrame.WinPanel | QFrame.Sunken ) QWidget( cell2 ) label1 = QLabel( QString( "…cell3 = QVBox( row2 ) cell3.setMargin( 10 ) cell3.setFrameStyle( QFrame.WinPanel | QFrame.Sunken ) hslider = QSlider( 0, 64, 1, 33, Qt… Re: Python GUI Programming Programming Software Development by bumsfeld ….setLineWidth(3) # test different styles #frame.setFrameStyle(QFrame.Box|QFrame.Sunken) # or frame.setFrameStyle(QFrame.Box|QFrame.Raised) frame.show() # ----- end of widget code… Re: linkactivated signal with qlabel??? Programming Software Development by explorepython …: rgba(0, 110, 74, 0);") self.textBrowser.setFrameShape(QtGui.QFrame.NoFrame) self.textBrowser.setObjectName("textBrowser") self.textBrowser.setOpenExternalLinks… Re: (C++) (QT) Custom Signal error Programming Software Development by Banfa …;link ) void QLabel linkHovered (const QString &link ) // Inherited from QFrame void QWidget customContextMenuRequested (const QPoint &pos ) // Inherited from QObject… Re: how to add floating toolbar to QFrame app in PyQt Programming Software Development by vegaseat We need some code. Re: Python, PyQT, understanding modules, classes, and objects... :) Programming Software Development by vegaseat 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 with a QPushButton and a QLabel select the QPushButton and use the Desiger's "Edit Signals/… Re: Python, PyQT, understanding modules, classes, and objects... :) Programming Software Development by xopenex 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 is a link that might be of use to others also! I will post my final code when i finish... … Re: Python, PyQT, understanding modules, classes, and objects... :) Programming Software Development by vegaseat 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 loader program in Python that loads the forms and widgets and then acts on it. You can quickly … Re: Python, PyQT, understanding modules, classes, and objects... :) Programming Software Development by xopenex 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 will make developing much smoother for me. I'll keep you updated... thanks again for the … Re: Python, PyQT, understanding modules, classes, and objects... :) Programming Software Development by HiHe 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. Re: Python, PyQT, understanding modules, classes, and objects... :) Programming Software Development by HiHe 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 with a QPushButton and a QLabel The QPushButton and QLabel are not connected using the … Re: Python, PyQT, understanding modules, classes, and objects... :) Programming Software Development by xopenex 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 it! Re: Python, PyQT, understanding modules, classes, and objects... :) Programming Software Development by HiHe Actually, the ui_to_python translator program spits out rather complex Python code. Re: Python, PyQT, understanding modules, classes, and objects... :) Programming Software Development by HiHe 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] Re: Question about PySide Programming Software Development by woooee 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 = None def init(self, \ w_title, \… Re: Question about PySide Programming Software Development by markfw 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 Re: Question about PySide Programming Software Development by bumsfeld [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 = button.sizeHint().height() button.show() print("button width=%d height=%d (in pixels… Re: Question about PySide Programming Software Development by markfw 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 when I had no GUI (Command Line) using subprocess. Now I'm trying to use QProcess to do a … Re: Question about PySide Programming Software Development by vegaseat Please start a new thread with a more specific title. Re: PyQt how to update QTreeView() w/o creating a new model? Programming Software Development by Tcll bump