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/w/x/wxPython-In-Action-HEAD/wxDesigner/samples2.19/foreign/foreign.py wxPython-In-Action(Download)
def OnTest(self, event):
dialog = wx.Dialog( self, -1, "Test foreign control" );
listctrl = wx.ListCtrl( dialog, ID_LISTCTRL, wx.DefaultPosition, [370,150], wx.LC_REPORT|wx.SUNKEN_BORDER )
listctrl.InsertColumn( 0, "Column 1", width=110 )
listctrl.InsertColumn( 1, "Column 2", width=110 )
listctrl.InsertColumn( 2, "Column 3", width=110 )
for i in range(80):
src/w/x/wxPython-In-Action-HEAD/wxDesigner/samples2.19/notebook/notebook.py wxPython-In-Action(Download)
def OnTest(self, event):
dialog = wx.Dialog(self, -1, "Notebook pages")
NotebookFunc(dialog, True)
dialog.CentreOnParent()
dialog.ShowModal()
def OnQuit(self, event):
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 Next