python


PyQt5 problems Ui form


# -*- coding: utf-8 -*-
from PyQt5 import QtWidgets, uic
import sys
class CreateProcedure( QtWidgets.QWidget ):
def _init__(self, parent = None ):
QtWidgets.QWidget.__init__( self, parent )
uic.loadUi("CreateProcedure.ui" , self)
if __name__ == "__main__":
app = QtWidgets.QApplication(sys.argv)
x = CreateProcedure()
x.show()
sys.exit(app.exec_())
This method of the adding of ui form in widget is in many sources, but I don't get form, only empty widget.
but this code work
app = QtWidgets.QApplication(sys.argv)
x = uic.loadUi("CreateProcedure.ui" )
x.show()
sys.exit(app.exec_())
why?)

Related Links

How to flatten a list with various data types (int, tuple)
Matplotlib: Change math font size and then go back to default
Comments are not showing up
Optimization through Iteration
How do I read each line of a file and add if statements?
how to get subclassed QWidgets from QToolBox?
Reading from pipe stdout waits infinitely
Getting Slice of one dimension in ndarray
Parsing Tex using python re library
Fix the seed for the community module in Python that uses networkx module
select first n items of a list without using a loop.
when I initiate second button click -> AttributeError: Application instance has no attribute 'readfile'
Python 3.4 with an older Python script for use in Blender, TypeErrors
error when installing numpy for pypy2.2.1
How to find out in which locale it was encoded to?
alembic revision - multiple heads (due branching) error

Categories

HOME
sql-server
cakephp-3.x
crystal-reports
sidekiq
antivirus
codeeffects
snap.svg
apiconnect
codeblocks
requirejs
actionscript-2
android-viewpager
lotus-notes
flexbox
getorgchart
xlsx
dlib
maxima
reduction
ada
google-people
zend-framework-mvc
epicor
thingsboard
badge
shopping-cart
net-snmp
codelite
vcard
xilinx-ise
twitter-bootstrap-2
fractals
ocs
modulo
precedence
geomesa
vsts-package-management
issue-tracking
magiczoomplus
restful-url
estimation
range-v3
dimple.js
workflow-foundation-4.5
slidesjs
fontconfig
uicollectionviewlayout
unity3d-editor
lotus
cjson
debugdiag
update-site
pydio
git-annex
gitweb
spoofing
multinomial
textkit
python-winshell
apigee-baas
abas
multipleselection
ejabberd-saas
client-side-validation
named-ranges
jquery-autocomplete
and-operator
getimagedata
code-testing
coin-flipping
level
anjuta
convex-polygon
justgage
xml-libxml
web-safe-fonts
feof
nssavepanel
throttling
datamember
posting
opengl-es-lighting
oggvorbis
msf

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App