src/o/b/oblivionworks-HEAD/Tags/Wrye Bash/276/Mopy/balt.py oblivionworks(Download)
def askContinue(parent,message,continueKey,title=_('Warning')):
"""Shows a modal continue query if value of continueKey is false. Returns True to continue.
Also provides checkbox "Don't show this in future." to set continueKey to true."""
#--ContinueKey set?
if _settings.get(continueKey): return wx.ID_OK
#--Generate/show dialog
dialog = wx.Dialog(parent,defId,title,size=(350,200),style=wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER)
size = _settings.get('balt.LogMessage.size',(400,400))
#--Dialog or Frame
if asDialog:
window = wx.Dialog(parent,defId,title,pos=pos,size=size,
style=wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER)
else:
window = wx.Frame(parent,defId,title,pos=pos,size=size,
size = _settings.get('balt.WryeLog.size',(400,400))
#--Dialog or Frame
if asDialog:
window = wx.Dialog(parent,defId,title,pos=pos,size=size,
style=wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER)
else:
window = wx.Frame(parent,defId,title,pos=pos,size=size,
class ListEditor(wx.Dialog):
"""Dialog for editing lists."""
def __init__(self,parent,id,title,data,type='list'):
#--Data
self.data = data #--Should be subclass of ListEditorData
self.items = data.getItemList()
#--GUI
src/o/b/oblivionworks-HEAD/Tags/Wrye Bash/274/Mopy/balt.py oblivionworks(Download)
def askContinue(parent,message,continueKey,title=_('Warning')):
"""Shows a modal continue query if value of continueKey is false. Returns True to continue.
Also provides checkbox "Don't show this in future." to set continueKey to true."""
#--ContinueKey set?
if _settings.get(continueKey): return wx.ID_OK
#--Generate/show dialog
dialog = wx.Dialog(parent,defId,title,size=(350,200),style=wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER)
size = _settings.get('balt.LogMessage.size',(400,400))
#--Dialog or Frame
if asDialog:
window = wx.Dialog(parent,defId,title,pos=pos,size=size,
style=wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER)
else:
window = wx.Frame(parent,defId,title,pos=pos,size=size,
size = _settings.get('balt.WryeLog.size',(400,400))
#--Dialog or Frame
if asDialog:
window = wx.Dialog(parent,defId,title,pos=pos,size=size,
style=wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER)
else:
window = wx.Frame(parent,defId,title,pos=pos,size=size,
class ListEditor(wx.Dialog):
"""Dialog for editing lists."""
def __init__(self,parent,id,title,data,type='list'):
#--Data
self.data = data #--Should be subclass of ListEditorData
self.items = data.getItemList()
#--GUI
src/o/b/oblivionworks-HEAD/Programs/Wrye Mash/Mopy/masher.py oblivionworks(Download)
def LogMessage(parent,message,logText,title='',style=0,asDialog=True):
#--Query Dialog
pos = settings.get('mash.message.log.pos',wx.DefaultPosition)
size = settings.get('mash.message.log.size',(400,400))
if asDialog:
window = wx.Dialog(parent,-1,title,pos=pos,size=size,
style=wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER)
def ContinueQuery(parent,message,continueKey,title=_('Warning')):
"""Shows a modal continue query if value of continueKey is false. Returns True to continue.
Also provides checkbox "Don't show this in future." to set continueKey to true."""
#--ContinueKey set?
if settings.get(continueKey): return wx.ID_OK
#--Generate/show dialog
dialog = wx.Dialog(parent,-1,title,size=(350,200),style=wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER)
class ListEditorDialog(wx.Dialog):
"""Dialog for editing lists."""
def __init__(self,parent,id,title,data,type='list'):
#--Data
self.data = data #--Should be subclass of ListEditorData
self.items = data.getItemList()
#--GUI
src/o/b/oblivionworks-HEAD/Tags/Wrye Bash/290/Mopy/balt.py oblivionworks(Download)
def askContinue(parent,message,continueKey,title=_('Warning')):
"""Shows a modal continue query if value of continueKey is false. Returns True to continue.
Also provides checkbox "Don't show this in future." to set continueKey to true."""
#--ContinueKey set?
if _settings.get(continueKey): return wx.ID_OK
#--Generate/show dialog
dialog = wx.Dialog(parent,defId,title,size=(350,200),style=wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER)
size = _settings.get('balt.LogMessage.size',(400,400))
#--Dialog or Frame
if asDialog:
window = wx.Dialog(parent,defId,title,pos=pos,size=size,
style=wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER)
else:
window = wx.Frame(parent,defId,title,pos=pos,size=size,
size = _settings.get('balt.WryeLog.size',(400,400))
#--Dialog or Frame
if asDialog:
window = wx.Dialog(parent,defId,title,pos=pos,size=size,
style=wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER)
else:
window = wx.Frame(parent,defId,title,pos=pos,size=size,
class ListEditor(wx.Dialog):
"""Dialog for editing lists."""
def __init__(self,parent,id,title,data,type='list'):
#--Data
self.data = data #--Should be subclass of ListEditorData
self.items = data.getItemList()
#--GUI
src/o/b/oblivionworks-HEAD/Tags/Wrye Bash/289/Mopy/balt.py oblivionworks(Download)
def askContinue(parent,message,continueKey,title=_('Warning')):
"""Shows a modal continue query if value of continueKey is false. Returns True to continue.
Also provides checkbox "Don't show this in future." to set continueKey to true."""
#--ContinueKey set?
if _settings.get(continueKey): return wx.ID_OK
#--Generate/show dialog
dialog = wx.Dialog(parent,defId,title,size=(350,200),style=wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER)
size = _settings.get('balt.LogMessage.size',(400,400))
#--Dialog or Frame
if asDialog:
window = wx.Dialog(parent,defId,title,pos=pos,size=size,
style=wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER)
else:
window = wx.Frame(parent,defId,title,pos=pos,size=size,
size = _settings.get('balt.WryeLog.size',(400,400))
#--Dialog or Frame
if asDialog:
window = wx.Dialog(parent,defId,title,pos=pos,size=size,
style=wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER)
else:
window = wx.Frame(parent,defId,title,pos=pos,size=size,
class ListEditor(wx.Dialog):
"""Dialog for editing lists."""
def __init__(self,parent,id,title,data,type='list'):
#--Data
self.data = data #--Should be subclass of ListEditorData
self.items = data.getItemList()
#--GUI
src/o/b/oblivionworks-HEAD/Tags/Wrye Bash/288/Mopy/balt.py oblivionworks(Download)
def askContinue(parent,message,continueKey,title=_('Warning')):
"""Shows a modal continue query if value of continueKey is false. Returns True to continue.
Also provides checkbox "Don't show this in future." to set continueKey to true."""
#--ContinueKey set?
if _settings.get(continueKey): return wx.ID_OK
#--Generate/show dialog
dialog = wx.Dialog(parent,defId,title,size=(350,200),style=wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER)
size = _settings.get('balt.LogMessage.size',(400,400))
#--Dialog or Frame
if asDialog:
window = wx.Dialog(parent,defId,title,pos=pos,size=size,
style=wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER)
else:
window = wx.Frame(parent,defId,title,pos=pos,size=size,
size = _settings.get('balt.WryeLog.size',(400,400))
#--Dialog or Frame
if asDialog:
window = wx.Dialog(parent,defId,title,pos=pos,size=size,
style=wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER)
else:
window = wx.Frame(parent,defId,title,pos=pos,size=size,
class ListEditor(wx.Dialog):
"""Dialog for editing lists."""
def __init__(self,parent,id,title,data,type='list'):
#--Data
self.data = data #--Should be subclass of ListEditorData
self.items = data.getItemList()
#--GUI
src/o/b/oblivionworks-HEAD/Programs/Wrye Mash/Mopy/balt.py oblivionworks(Download)
def askContinue(parent,message,continueKey,title=_('Warning')):
"""Shows a modal continue query if value of continueKey is false. Returns True to continue.
Also provides checkbox "Don't show this in future." to set continueKey to true."""
#--ContinueKey set?
if _settings.get(continueKey): return wx.ID_OK
#--Generate/show dialog
dialog = wx.Dialog(parent,defId,title,size=(350,200),style=wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER)
size = _settings.get('balt.LogMessage.size',(400,400))
#--Dialog or Frame
if asDialog:
window = wx.Dialog(parent,defId,title,pos=pos,size=size,
style=wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER)
else:
window = wx.Frame(parent,defId,title,pos=pos,size=size,
size = _settings.get('balt.WryeLog.size',(400,400))
#--Dialog or Frame
if asDialog:
window = wx.Dialog(parent,defId,title,pos=pos,size=size,
style=wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER)
else:
window = wx.Frame(parent,defId,title,pos=pos,size=size,
class ListEditor(wx.Dialog):
"""Dialog for editing lists."""
def __init__(self,parent,id,title,data,type='list'):
#--Data
self.data = data #--Should be subclass of ListEditorData
self.items = data.getItemList()
#--GUI
src/o/b/oblivionworks-HEAD/Programs/Wrye Bash/Mopy/balt.py oblivionworks(Download)
def askContinue(parent,message,continueKey,title=_('Warning')):
"""Shows a modal continue query if value of continueKey is false. Returns True to continue.
Also provides checkbox "Don't show this in future." to set continueKey to true."""
#--ContinueKey set?
if _settings.get(continueKey): return wx.ID_OK
#--Generate/show dialog
dialog = wx.Dialog(parent,defId,title,size=(350,200),style=wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER)
size = _settings.get('balt.LogMessage.size',(400,400))
#--Dialog or Frame
if asDialog:
window = wx.Dialog(parent,defId,title,pos=pos,size=size,
style=wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER)
else:
window = wx.Frame(parent,defId,title,pos=pos,size=size,
size = _settings.get('balt.WryeLog.size',(400,400))
#--Dialog or Frame
if asDialog:
window = wx.Dialog(parent,defId,title,pos=pos,size=size,
style=wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER)
else:
window = wx.Frame(parent,defId,title,pos=pos,size=size,
class ListEditor(wx.Dialog):
"""Dialog for editing lists."""
def __init__(self,parent,id,title,data,type='list'):
#--Data
self.data = data #--Should be subclass of ListEditorData
self.items = data.getItemList()
#--GUI
src/s/o/softgridhelper-HEAD/sampleCodes/newWxFormBuilder/newtest.py.py softgridhelper(Download)
class mayaReportHelper ( wx.Dialog ): def __init__( self, parent ): wx.Dialog.__init__ ( self, parent, id = wx.ID_ANY, title = u"mayaReportHelper", pos = wx.DefaultPosition, size = wx.Size( 549,361 ), style = wx.CAPTION|wx.CLOSE_BOX|wx.DEFAULT_DIALOG_STYLE|wx.MAXIMIZE_BOX|wx.MINIMIZE_BOX|wx.RESIZE_BORDER|wx.SIMPLE_BORDER ) self.SetSizeHintsSz( wx.DefaultSize, wx.DefaultSize )
src/s/o/softgridhelper-HEAD/sampleCodes/newWxFormBuilder/newtest.py softgridhelper(Download)
class mayaReportHelper ( wx.Dialog ): def __init__( self, parent ): wx.Dialog.__init__ ( self, parent, id = wx.ID_ANY, title = u"mayaReportHelper", pos = wx.DefaultPosition, size = wx.Size( 549,331 ), style = wx.CAPTION|wx.CLOSE_BOX|wx.DEFAULT_DIALOG_STYLE|wx.MAXIMIZE_BOX|wx.MINIMIZE_BOX|wx.RESIZE_BORDER|wx.SIMPLE_BORDER ) self.SetSizeHintsSz( wx.DefaultSize, wx.DefaultSize )
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 Next