Skip to content

Commit

Permalink
Resize added
Browse files Browse the repository at this point in the history
  • Loading branch information
Harsh Talpada authored and Harsh Talpada committed Mar 3, 2017
1 parent f9d78bd commit 630cc99
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions ESPFlasherGUI.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ def __init__(self,parent=None):
self.frozen = 'not'
self.chip = 'ESP32'

def resizeEvent(self,ev):
w = int(str(self.geometry()).split("(")[1].split(")")[0].split(",")[2])
h = int(str(self.geometry()).split("(")[1].split(")")[0].split(",")[3])
print w,h
self.verticalLayoutWidget.resize(w,h)

def selectFile(self,name,obj):
obj.setText(QtGui.QFileDialog.getOpenFileName(self,name,filter='(*.bin)'))

Expand Down
4 changes: 2 additions & 2 deletions esptoolGUIUI.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName(_fromUtf8("MainWindow"))
MainWindow.resize(444, 294)
MainWindow.setMinimumSize(QtCore.QSize(444, 294))
MainWindow.setMaximumSize(QtCore.QSize(444, 294))
#MainWindow.setMinimumSize(QtCore.QSize(444, 294))
#MainWindow.setMaximumSize(QtCore.QSize(444, 294))
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap(_fromUtf8("espLogo.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
MainWindow.setWindowIcon(icon)
Expand Down
Binary file modified esptoolGUIUI.pyc
Binary file not shown.

0 comments on commit 630cc99

Please sign in to comment.