import sys
from PyQt5.QtWidgets import *
def __init__(self):
super().__init__()
self.setWindowTitle("some text")
#self.setGeometry(50,50,500,500) #if I want set the size
self.UI()
def UI(self):
rightPanel(horizontalbox)
leftPanel(horizontalbox)
#horizontalbox.addLayout(lp)
#horizontalbox.addLayout(rp)
self.setLayout(horizontalbox)
self.show()
def rightPanel(horizontalbox):
welcomeText
= QLabel("some text", self
) verticalboxRP.addWidget(welcomeText)
self.setLayout(verticalboxRP)
#self.show()
def leftPanel(self):
image.
setPixmap(QPixmap('logoUPO.png')) text
= QLabel("AnForA\n Android Forensic Automator", self
) installAPKBtn
= QPushButton("Install APK on the device", self
) detectPathBtn
= QPushButton("Detect analysis paths", self
)
verticalbox.addWidget(image)
verticalbox.addWidget(text)
verticalbox.addWidget(installAPKBtn)
verticalbox.addWidget(detectPathBtn)
verticalbox.addWidget(startExpBtn)
verticalbox.addWidget(analyzeResBtn)
verticalbox.addWidget(quitBtn)
self.setLayout(verticalboxLP)
self.show()
def installAPK(self):
pass
def detectPath(self):
pass
def main():
window = Window()
sys.exit(App.exec_())
if __name__=='__main__':
main()
import sys
from PyQt5.QtWidgets import *
from PyQt5.QtGui import QPixmap
class Window(QWidget):
def __init__(self):
super().__init__()
self.setWindowTitle("some text")
#self.setGeometry(50,50,500,500) #if I want set the size
self.UI()
def UI(self):
horizontalbox=QHBoxLayout()
rightPanel(horizontalbox)
leftPanel(horizontalbox)
#horizontalbox.addLayout(lp)
#horizontalbox.addLayout(rp)
self.setLayout(horizontalbox)
self.show()
def rightPanel(horizontalbox):
verticalboxRP=QVBoxLayout()
welcomeText = QLabel("some text", self)
verticalboxRP.addWidget(welcomeText)
self.setLayout(verticalboxRP)
#self.show()
def leftPanel(self):
verticalboxLP=QVBoxLayout()
image = QLabel(self)
image.setPixmap(QPixmap('logoUPO.png'))
text = QLabel("AnForA\n Android Forensic Automator", self)
installAPKBtn = QPushButton("Install APK on the device", self)
detectPathBtn = QPushButton("Detect analysis paths", self)
startExpBtn = QPushButton("Start experiment", self)
analyzeResBtn = QPushButton("Analyze results", self)
quitBtn = QPushButton("quit", self)
verticalbox.addWidget(image)
verticalbox.addWidget(text)
verticalbox.addWidget(installAPKBtn)
verticalbox.addWidget(detectPathBtn)
verticalbox.addWidget(startExpBtn)
verticalbox.addWidget(analyzeResBtn)
verticalbox.addWidget(quitBtn)
self.setLayout(verticalboxLP)
self.show()
def installAPK(self):
pass
def detectPath(self):
pass
def main():
App = QApplication(sys.argv)
window = Window()
sys.exit(App.exec_())
if __name__=='__main__':
main()
To copy to clipboard, switch view to plain text mode
Bookmarks