Skip to content

Instantly share code, notes, and snippets.

@l337quez
Created July 21, 2019 13:36
Show Gist options
  • Save l337quez/454827cce221c12d2475a442b679bc18 to your computer and use it in GitHub Desktop.
Save l337quez/454827cce221c12d2475a442b679bc18 to your computer and use it in GitHub Desktop.
ejemplo de pyside + python
import sys
from PySide import QtCore,QtGui
#Creamos una aplicacion Qt
app = QtGui.QApplication(sys.argv)
imged = QtGui.QPixmap('img.jpg')
tabwidget= QtGui.QTabWidget()
tab1=QtGui.QWidget()
tab2=QtGui.QWidget()
layout=QtGui.QGridLayout(tabwidget)
tabwidget.addTab(tab1,"Home")
tabwidget.addTab(tab2, "informacion")
tabwidget.resize(600,407)
tabwidget.setWindowTitle("mi programa")
#icono
tabwidget.setWindowIcon(QtGui.QIcon('progrma.png'))
tabwidget.show()
app.exec_()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment