本文整理汇总了Python中Modules.frm_PhishingManager方法的典型用法代码示例。如果您正苦于以下问题:Python Modules.frm_PhishingManager方法的具体用法?Python Modules.frm_PhishingManager怎么用?Python Modules.frm_PhishingManager使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Modules
的用法示例。
在下文中一共展示了Modules.frm_PhishingManager方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: import Modules [as 别名]
# 或者: from Modules import frm_PhishingManager [as 别名]
def __init__(self,FSettings):
QWidget.__init__(self)
self.FSettings = FSettings
self.Ftemplates = GUIs.frm_PhishingManager()
self.layout = QVBoxLayout()
self.FormLayout = QFormLayout()
self.GridForm = QGridLayout()
self.Status = QStatusBar()
self.StatusLabel= QLabel(self)
self.Status.addWidget(QLabel('Status::'))
self.Status.addWidget(self.StatusLabel)
self.GroupBox = QGroupBox()
self.GroupBox.setTitle('::Server-HTTP::')
self.GroupBox.setLayout(self.FormLayout)
self.btntemplates = QPushButton('Phishing M.')
self.btnStopServer = QPushButton('Stop Server')
self.btnRefresh = QPushButton('ReFresh')
self.txt_IP = QLineEdit(self)
self.ComboIface = QComboBox(self)
self.txt_IP.setVisible(False)
self.StatusServer(False)
#icons
self.btntemplates.setIcon(QIcon('Icons/page.png'))
self.btnStopServer.setIcon(QIcon('Icons/close.png'))
self.btnRefresh.setIcon(QIcon('Icons/refresh.png'))
#conects
self.refrash_interface()
self.btntemplates.clicked.connect(self.show_template_dialog)
self.btnStopServer.clicked.connect(self.StopLocalServer)
self.btnRefresh.clicked.connect(self.refrash_interface)
self.connect(self.ComboIface, SIGNAL('currentIndexChanged(QString)'), self.discoveryIface)
#layout
self.GridForm.addWidget(self.ComboIface,0,1)
self.GridForm.addWidget(self.btnRefresh,0,2)
self.GridForm.addWidget(self.btntemplates,1,1)
self.GridForm.addWidget(self.btnStopServer,1,2)
self.FormLayout.addRow(self.GridForm)
self.FormLayout.addWidget(self.Status)
self.layout.addWidget(self.GroupBox)
self.setLayout(self.layout)