本文整理汇总了Python中Main.main方法的典型用法代码示例。如果您正苦于以下问题:Python Main.main方法的具体用法?Python Main.main怎么用?Python Main.main使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Main
的用法示例。
在下文中一共展示了Main.main方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: get_result
# 需要导入模块: import Main [as 别名]
# 或者: from Main import main [as 别名]
def get_result(self):
Main.main(self.text)
# заменить на target.txt
for item in open("target.txt"):
self.sys_txt.insert(END, item)
if self.sys_txt.get("1.0", END + "-1c"):
self.buffer_btn["state"] = NORMAL
示例2: index
# 需要导入模块: import Main [as 别名]
# 或者: from Main import main [as 别名]
def index():
form = BookForm(csrf_enabled=False)
if form.validate_on_submit():
# Check the password and log the user in
# [...]
artist=Main.main(form.book.data)
return redirect(url_for('index'))
return redirect(url_for('qwerty'))
return render_template('index.html', form=form)
示例3: Go
# 需要导入模块: import Main [as 别名]
# 或者: from Main import main [as 别名]
def Go(self,services):
Main.main()
示例4: vline_pos_changed
# 需要导入模块: import Main [as 别名]
# 或者: from Main import main [as 别名]
def vline_pos_changed(self,evt):
""" updater for the zlayer change caused by the vline """
vline = evt
pos = int(vline.pos().x())
self.Main.Data_Display.Frame_Visualizer.frame = pos
self.Main.Data_Display.Frame_Visualizer.update_frame()
self.update_vline(pos)
def update_vline(self,pos):
self.vline.setValue(pos) # this is for the keypress event
# update all lines of Traces_Visualizer_Stimsorted
for vline in self.Main.Data_Display.Traces_Visualizer_Stimsorted.vlines:
vline.blockSignals(True)
vline.setValue(pos)
vline.blockSignals(False)
def wheelEvent(self,evt): # reimplementation
d = sp.around(evt.delta() / 120.0) # check this on different machines how much it is
self.Main.Data_Display.Frame_Visualizer.frame -= d
self.update_vline(self.Main.Data_Display.Frame_Visualizer.frame)
self.Main.Data_Display.Frame_Visualizer.update_frame()
pass
if __name__ == '__main__':
import Main
Main.main()
pass