OSDN Git Service

revise database generator for seed1 decision & threshold2 & inishie
[amulettoolsmh4/main.git] / view / notebookflowview.py
1 # -*- coding: utf-8 -*-
2
3 # GUIのメインフレームにおける流れ説明Notebookのview
4 # 2013/12/15 written by kei9
5
6 import wx
7 from wx import xrc
8
9 import constnumbers
10
11 class NoteBookFlowView():
12     u""" メインフレームの流れ説明タブ """
13     def __init__(self, frame):
14         self.frame = frame
15         self._init_view()
16
17     def _init_view(self):
18         # initialize view
19         self.text_ctrl_flow = xrc.XRCCTRL(self.frame, "TextCtrlFlow")
20         self.text_ctrl_seed = xrc.XRCCTRL(self.frame, "TextCtrlSeedExplanation")
21         self.text_ctrl_flow.SetValue(constnumbers.SECOND_SKILL_FLOW)
22         self.text_ctrl_seed.SetValue(constnumbers.SEED_EXPLANATION)
23
24     def set_flow_value(self, value):
25         self.text_ctrl_flow.SetValue(value)
26
27     def clear_flow_value(self):
28         self.text_ctrl_flow.SetValue(u"")