📄 wxclassstructurewarningdialog.py
字号:
#Boa:Dialog:wxClassStructureWarningDialog
"""
A dialog for displaying part of the imported ASCII files for PyChem
$Id: wxImportConfirmDialog.py Copyright (C) 2005 Roger Jarvis
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
"""
from wxPython.wx import *
from wxPython.grid import *
def create(parent):
return wxClassStructureWarningDialog(parent)
[wxID_WXCLASSSTRUCTUREWARNINGDIALOG, wxID_WXCLASSSTRUCTUREWARNINGDIALOGBTNOK,
wxID_WXCLASSSTRUCTUREWARNINGDIALOGCBSHOWAGAIN,
wxID_WXCLASSSTRUCTUREWARNINGDIALOGSTATICTEXT2,
wxID_WXCLASSSTRUCTUREWARNINGDIALOGSWLOADX,
] = map(lambda _init_ctrls: wxNewId(), range(5))
class wxClassStructureWarningDialog(wxDialog):
def _init_ctrls(self, prnt):
# generated method, don't edit
wxDialog.__init__(self, id=wxID_WXCLASSSTRUCTUREWARNINGDIALOG,
name='wxClassStructureWarningDialog', parent=prnt,
pos=wxPoint(348, 239), size=wxSize(268, 186),
style=wxCAPTION | wxDIALOG_MODAL, title='Error')
self.SetClientSize(wxSize(260, 152))
self.SetToolTipString('')
self.swLoadX = wxSashWindow(id=wxID_WXCLASSSTRUCTUREWARNINGDIALOGSWLOADX,
name='swLoadX', parent=self, pos=wxPoint(0, 0), size=wxSize(307,
287), style=wxCLIP_CHILDREN | wxSW_3D)
self.swLoadX.SetToolTipString('')
self.btnOK = wxButton(id=wxID_WXCLASSSTRUCTUREWARNINGDIALOGBTNOK,
label='OK', name='btnOK', parent=self.swLoadX, pos=wxPoint(80,
104), size=wxSize(104, 26), style=0)
EVT_BUTTON(self.btnOK, wxID_WXCLASSSTRUCTUREWARNINGDIALOGBTNOK,
self.OnBtnOKButton)
self.cbShowAgain = wxCheckBox(id=wxID_WXCLASSSTRUCTUREWARNINGDIALOGCBSHOWAGAIN,
label="Don't show this message again?", name='cbShowAgain',
parent=self.swLoadX, pos=wxPoint(40, 72), size=wxSize(184, 13),
style=0)
self.cbShowAgain.SetValue(False)
self.cbShowAgain.SetToolTipString('')
self.staticText2 = wxStaticText(id=wxID_WXCLASSSTRUCTUREWARNINGDIALOGSTATICTEXT2,
label='One or several of the classes within your data structure does not have an identified TRAINING sample.',
name='staticText2', parent=self.swLoadX, pos=wxPoint(40, 16),
size=wxSize(187, 48), style=0)
self.staticText2.SetToolTipString('')
def __init__(self, parent):
self._init_ctrls(parent)
def OnBtnOKButton(self, event):
self.Close()
def GetShowAgain(self):
if self.cbShowAgain.GetValue() == 0:
op = 1
else:
op = 0
return op
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -