Görüldüğü üzere Qt Designer da yaptığım ui de büyütüp kücültürken düzgün görünüyor ancak py dosyasına çevirdikten sonra olması gerektiği gibi görünmüyor çevrilmiş dosyanın py kodu şu:
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'widgets ui/anamenu.ui'
#
# Created by: PyQt5 UI code generator 5.15.10
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_anamenu(object):
def setupUi(self, anamenu):
anamenu.setObjectName("anamenu")
anamenu.resize(700, 500)
self.verticalLayout_2 = QtWidgets.QVBoxLayout(anamenu)
self.verticalLayout_2.setContentsMargins(8, -1, 8, -1)
self.verticalLayout_2.setObjectName("verticalLayout_2")
self.verticalLayout = QtWidgets.QVBoxLayout()
self.verticalLayout.setObjectName("verticalLayout")
self.verticalLayout_3 = QtWidgets.QVBoxLayout()
self.verticalLayout_3.setObjectName("verticalLayout_3")
spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
self.verticalLayout_3.addItem(spacerItem)
self.horizontalLayout = QtWidgets.QHBoxLayout()
self.horizontalLayout.setObjectName("horizontalLayout")
spacerItem1 = QtWidgets.QSpacerItem(80, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout.addItem(spacerItem1)
self.ke = QtWidgets.QPushButton(anamenu)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Minimum)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.ke.sizePolicy().hasHeightForWidth())
self.ke.setSizePolicy(sizePolicy)
self.ke.setMinimumSize(QtCore.QSize(122, 40))
self.ke.setObjectName("ke")
self.horizontalLayout.addWidget(self.ke)
self.kg = QtWidgets.QPushButton(anamenu)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Minimum)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.kg.sizePolicy().hasHeightForWidth())
self.kg.setSizePolicy(sizePolicy)
self.kg.setMinimumSize(QtCore.QSize(122, 40))
self.kg.setObjectName("kg")
self.horizontalLayout.addWidget(self.kg)
self.ks = QtWidgets.QPushButton(anamenu)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Minimum)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.ks.sizePolicy().hasHeightForWidth())
self.ks.setSizePolicy(sizePolicy)
self.ks.setMinimumSize(QtCore.QSize(122, 40))
self.ks.setObjectName("ks")
self.horizontalLayout.addWidget(self.ks)
self.kc = QtWidgets.QPushButton(anamenu)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Minimum)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.kc.sizePolicy().hasHeightForWidth())
self.kc.setSizePolicy(sizePolicy)
self.kc.setMinimumSize(QtCore.QSize(122, 40))
self.kc.setObjectName("kc")
self.horizontalLayout.addWidget(self.kc)
spacerItem2 = QtWidgets.QSpacerItem(80, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout.addItem(spacerItem2)
self.verticalLayout_3.addLayout(self.horizontalLayout)
self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
spacerItem3 = QtWidgets.QSpacerItem(80, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_2.addItem(spacerItem3)
self.ns = QtWidgets.QPushButton(anamenu)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Minimum)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.ns.sizePolicy().hasHeightForWidth())
self.ns.setSizePolicy(sizePolicy)
self.ns.setMinimumSize(QtCore.QSize(122, 40))
self.ns.setSizeIncrement(QtCore.QSize(0, 0))
self.ns.setBaseSize(QtCore.QSize(0, 0))
self.ns.setIconSize(QtCore.QSize(16, 16))
self.ns.setObjectName("ns")
self.horizontalLayout_2.addWidget(self.ns)
spacerItem4 = QtWidgets.QSpacerItem(380, 40, QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_2.addItem(spacerItem4)
spacerItem5 = QtWidgets.QSpacerItem(80, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_2.addItem(spacerItem5)
self.verticalLayout_3.addLayout(self.horizontalLayout_2)
spacerItem6 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
self.verticalLayout_3.addItem(spacerItem6)
spacerItem7 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
self.verticalLayout_3.addItem(spacerItem7)
self.verticalLayout.addLayout(self.verticalLayout_3)
spacerItem8 = QtWidgets.QSpacerItem(20, 237, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
self.verticalLayout.addItem(spacerItem8)
self.verticalLayout_2.addLayout(self.verticalLayout)
self.retranslateUi(anamenu)
def retranslateUi(self, anamenu):
_translate = QtCore.QCoreApplication.translate
anamenu.setWindowTitle(_translate("anamenu", "anamenu"))
self.ke.setText(_translate("anamenu", "Kelime Ekle"))
self.kg.setText(_translate("anamenu", "Kelime Güncelle"))
self.ks.setText(_translate("anamenu", "Kelime Sor"))
self.kc.setText(_translate("anamenu", "Kelime Çalış"))
self.ns.setText(_translate("anamenu", "Notlar"))
Lütfen yardımcı olun