-
Notifications
You must be signed in to change notification settings - Fork 0
/
GUI_Gene.py
138 lines (85 loc) · 4.58 KB
/
GUI_Gene.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
# -*- coding: utf-8 -*-
###########################################################################
## Python code generated with wxFormBuilder (version 3.10.1-0-g8feb16b3)
## http://www.wxformbuilder.org/
##
## PLEASE DO *NOT* EDIT THIS FILE!
###########################################################################
import wx
import wx.xrc
###########################################################################
## Class Main
###########################################################################
class Main ( wx.Frame ):
def __init__( self, parent ):
wx.Frame.__init__ ( self, parent, id = wx.ID_ANY, title = wx.EmptyString, pos = wx.DefaultPosition, size = wx.Size( 500,400 ), style = wx.DEFAULT_FRAME_STYLE|wx.TAB_TRAVERSAL )
self.SetSizeHints( wx.DefaultSize, wx.DefaultSize )
self.SetBackgroundColour( wx.Colour( 255, 255, 255 ) )
bSizer1 = wx.BoxSizer( wx.VERTICAL )
self.m_staticText2 = wx.StaticText( self, wx.ID_ANY, u"基因库", wx.DefaultPosition, wx.Size( -1,-1 ), 0 )
self.m_staticText2.Wrap( -1 )
self.m_staticText2.SetFont( wx.Font( 12, wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, False, "方正黑体简体" ) )
bSizer1.Add( self.m_staticText2, 0, wx.ALL|wx.ALIGN_CENTER_HORIZONTAL, 5 )
self.space1 = wx.StaticText( self, wx.ID_ANY, wx.EmptyString, wx.DefaultPosition, wx.Size( -1,50 ), 0 )
self.space1.Wrap( -1 )
bSizer1.Add( self.space1, 0, wx.ALL, 5 )
self.Screach = wx.SearchCtrl( self, wx.ID_ANY, wx.EmptyString, wx.DefaultPosition, wx.DefaultSize, 0 )
self.Screach.ShowSearchButton( True )
self.Screach.ShowCancelButton( True )
bSizer1.Add( self.Screach, 0, wx.ALL|wx.ALIGN_CENTER_HORIZONTAL, 5 )
self.space2 = wx.StaticText( self, wx.ID_ANY, wx.EmptyString, wx.DefaultPosition, wx.Size( -1,50 ), 0 )
self.space2.Wrap( -1 )
bSizer1.Add( self.space2, 0, wx.ALL, 5 )
self.Recommend = wx.StaticText( self, wx.ID_ANY, u"推荐:", wx.DefaultPosition, wx.DefaultSize, 0 )
self.Recommend.Wrap( -1 )
bSizer1.Add( self.Recommend, 0, wx.ALL, 5 )
gSizer1 = wx.GridSizer( 0, 4, 50, 0 )
self.m_bpButton1 = wx.BitmapButton( self, wx.ID_ANY, wx.NullBitmap, wx.DefaultPosition, wx.Size( 100,100 ), wx.BU_AUTODRAW|0 )
self.m_bpButton1.SetBitmap( wx.Bitmap( u"pictures/Covid19.png", wx.BITMAP_TYPE_ANY ) )
gSizer1.Add( self.m_bpButton1, 0, wx.ALL, 5 )
self.m_bpButton2 = wx.BitmapButton( self, wx.ID_ANY, wx.NullBitmap, wx.DefaultPosition, wx.Size( 100,100 ), wx.BU_AUTODRAW|0 )
gSizer1.Add( self.m_bpButton2, 0, wx.ALL, 5 )
self.m_bpButton3 = wx.BitmapButton( self, wx.ID_ANY, wx.NullBitmap, wx.DefaultPosition, wx.Size( 100,100 ), wx.BU_AUTODRAW|0 )
gSizer1.Add( self.m_bpButton3, 0, wx.ALL, 5 )
self.m_bpButton4 = wx.BitmapButton( self, wx.ID_ANY, wx.NullBitmap, wx.DefaultPosition, wx.Size( 100,100 ), wx.BU_AUTODRAW|0 )
gSizer1.Add( self.m_bpButton4, 0, wx.ALL, 5 )
self.F1 = wx.StaticText( self, wx.ID_ANY, u"Covid19-RNA", wx.DefaultPosition, wx.DefaultSize, 0 )
self.F1.Wrap( -1 )
gSizer1.Add( self.F1, 0, wx.ALL, 5 )
self.F2 = wx.StaticText( self, wx.ID_ANY, u"NONE", wx.DefaultPosition, wx.DefaultSize, 0 )
self.F2.Wrap( -1 )
gSizer1.Add( self.F2, 0, wx.ALL, 5 )
self.F3 = wx.StaticText( self, wx.ID_ANY, u"NONE", wx.DefaultPosition, wx.DefaultSize, 0 )
self.F3.Wrap( -1 )
gSizer1.Add( self.F3, 0, wx.ALL, 5 )
self.F4 = wx.StaticText( self, wx.ID_ANY, u"NONE", wx.DefaultPosition, wx.DefaultSize, 0 )
self.F4.Wrap( -1 )
gSizer1.Add( self.F4, 0, wx.ALL, 5 )
bSizer1.Add( gSizer1, 1, wx.EXPAND, 5 )
self.Tip = wx.StaticText( self, wx.ID_ANY, u"NONE", wx.DefaultPosition, wx.DefaultSize, 0 )
self.Tip.Wrap( -1 )
self.Tip.Hide()
bSizer1.Add( self.Tip, 0, wx.ALL, 5 )
self.Show1 = wx.TextCtrl( self, wx.ID_ANY, wx.EmptyString, wx.DefaultPosition, wx.Size( 500,100 ), wx.TE_MULTILINE|wx.TE_READONLY )
self.Show1.Hide()
bSizer1.Add( self.Show1, 0, wx.ALL, 5 )
self.Tip2 = wx.StaticText( self, wx.ID_ANY, u"NONE", wx.DefaultPosition, wx.DefaultSize, 0 )
self.Tip2.Wrap( -1 )
self.Tip2.Hide()
bSizer1.Add( self.Tip2, 0, wx.ALL, 5 )
self.Show2 = wx.TextCtrl( self, wx.ID_ANY, wx.EmptyString, wx.DefaultPosition, wx.Size( 500,100 ), wx.TE_MULTILINE|wx.TE_READONLY )
self.Show2.Hide()
bSizer1.Add( self.Show2, 0, wx.ALL, 5 )
self.SetSizer( bSizer1 )
self.Layout()
self.Centre( wx.BOTH )
# Connect Events
self.Bind( wx.EVT_CLOSE, self.Close )
self.m_bpButton1.Bind( wx.EVT_BUTTON, self.Covid19 )
def __del__( self ):
pass
# Virtual event handlers, override them in your derived class
def Close( self, event ):
event.Skip()
def Covid19( self, event ):
event.Skip()