def __init__(self, parent, title, runnableProgress): self.runnableProgress = runnableProgress self.runnableProgress.addListener(self) self.thread = ZProgressDialogThread(self.runnableProgress, self) ZBaseDialog.__init__(self, parent, wx.ID_ANY, title) self.Fit() self.thread.start()
def __init__(self, parent, model): # model is instance of ZFontModel. self.model = model fontsEnum = wx.FontEnumerator() fontsEnum.EnumerateFacenames() self.systemFontNames = fontsEnum.GetFacenames() self.systemFontNames.sort() ZBaseDialog.__init__(self, parent, wx.ID_ANY, _extstr(u"fontdialog.DialogTitle"), style = wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER, name = u"ZFontDialog") #$NON-NLS-1$ #$NON-NLS-2$
def __init__(self, parent, title, caption, buttonMask, imageName): self.caption = caption self.buttonMask = buttonMask self.imageName = imageName ZBaseDialog.__init__(self, parent, wx.ID_ANY, title, style=wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER) (w, h) = self.GetBestSizeTuple() w = min(max(w, 350), 500) self.SetSize(wx.Size(w, h)) self.Layout()
def __init__(self, parent, id, title, pos=wx.DefaultPosition, size=wx.DefaultSize, style=wx.DEFAULT_DIALOG_STYLE, name=u"ZHeaderDialog"): #$NON-NLS-1$): ZBaseDialog.__init__(self, parent, id, title, pos, size, style, name)
def __init__(self, parent): self.userPrefs = getApplicationModel().getUserProfile().getPreferences( ) self.feedbackEmailUserPrefsKey = IZAppUserPrefsKeys.FEEDBACK_DIALOG + u".email" #$NON-NLS-1$ ZBaseDialog.__init__( self, parent, wx.ID_ANY, _extstr(u"feedbackdialog.ZoundryRavenFeedback")) #$NON-NLS-1$ ZPersistentDialogMixin.__init__(self, IZAppUserPrefsKeys.FEEDBACK_DIALOG, True, True)
def __init__( self, parent, id, title, pos=wx.DefaultPosition, size=wx.DefaultSize, style=wx.DEFAULT_DIALOG_STYLE, name=u"ZHeaderDialog", ): # $NON-NLS-1$): ZBaseDialog.__init__(self, parent, id, title, pos, size, style, name)
def __init__(self, parent, session, id, title, pos = wx.DefaultPosition, size = wx.DefaultSize, style = wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER, name = u"ZWizard"): #$NON-NLS-1$ self.session = session self.images = [] self.pages = [] self.currentIdx = 0 self.lastDirection = -1 # last know direction (WizarPage.PREVIOUS or WizardPage.NEXT) pressed self.bgTask = None # runnable bg task self.bgTaskPreviousButtonState = False self.bgTaskNextButtonState = False ZBaseDialog.__init__(self, parent, id, title, pos, size, style, name) self._createWizardPages()
def __init__(self, parent, spellCheckModel): self.spellCheckModel = spellCheckModel ZBaseDialog.__init__( self, parent, wx.ID_ANY, _extstr(u"spellcheckdialog.DialogTitle"), size=wx.Size(350, 340), style=wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER, name=u"ZSpellCheckDialog") #$NON-NLS-1$ #$NON-NLS-2$ ZPersistentDialogMixin.__init__( self, IZBlogAppUserPrefsKeys.SPELLCHECK_DIALOG, False, True)
def __init__(self, parent, model): # model is instance of ZTableModel. self.model = model ZBaseDialog.__init__( self, parent, wx.ID_ANY, _extstr(u"tabledialog.DialogTitle"), style=wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER, name=u"ZInsertTableDialog") #$NON-NLS-1$ #$NON-NLS-2$ bestHeight = self.GetBestSizeTuple()[1] self.SetSize(wx.Size(-1, bestHeight))
def __init__(self, parent, findReplaceModel): self.findReplaceModel = findReplaceModel ZBaseDialog.__init__( self, parent, wx.ID_ANY, _extstr(u"findreplacedialog.DialogTitle"), style=wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER, name=u"ZSpellCheckDialog", ) # $NON-NLS-1$ #$NON-NLS-2$ ZPersistentDialogMixin.__init__(self, IZBlogAppUserPrefsKeys.FIND_REPLACE_DIALOG, True, True) if getNoneString(self.findReplaceModel.getFindText()) is not None: # since there is a search term preselected, initiate the find process. runnable = ZMethodRunnable(self._doFindNext) fireUIExecEvent(runnable, self)
def __init__(self, parent, findReplaceModel): self.findReplaceModel = findReplaceModel ZBaseDialog.__init__( self, parent, wx.ID_ANY, _extstr(u"findreplacedialog.DialogTitle"), style=wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER, name=u"ZSpellCheckDialog") #$NON-NLS-1$ #$NON-NLS-2$ ZPersistentDialogMixin.__init__( self, IZBlogAppUserPrefsKeys.FIND_REPLACE_DIALOG, True, True) if getNoneString(self.findReplaceModel.getFindText()) is not None: # since there is a search term preselected, initiate the find process. runnable = ZMethodRunnable(self._doFindNext) fireUIExecEvent(runnable, self)
def __init__( self, ztest, parent, title, pos=wx.DefaultPosition, size=wx.DefaultSize, style=wx.DEFAULT_DIALOG_STYLE, ): self.ztest = ztest ZBaseDialog.__init__(self, parent, wx.ID_ANY, title, pos=pos, size=size, style=style)
def __init__(self, parent, session, id, title, pos=wx.DefaultPosition, size=wx.DefaultSize, style=wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER, name=u"ZWizard"): #$NON-NLS-1$ self.session = session self.images = [] self.pages = [] self.currentIdx = 0 self.lastDirection = -1 # last know direction (WizarPage.PREVIOUS or WizardPage.NEXT) pressed self.bgTask = None # runnable bg task self.bgTaskPreviousButtonState = False self.bgTaskNextButtonState = False ZBaseDialog.__init__(self, parent, id, title, pos, size, style, name) self._createWizardPages()
def __init__(self, parent, errorMessage, errorDetail): self.parent = parent self.errorMessage = errorMessage self.errorDetail = errorDetail self.mode = MODE_COMPACT ZBaseDialog.__init__(self, parent, wx.ID_ANY, _extstr(u"error_dialog.DialogTitle"), style = wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER, size=wx.Size(DIALOG_WIDTH, COMPACT_DIALOG_HEIGHT)) #$NON-NLS-1$
def __init__(self, parent, spellCheckModel): self.spellCheckModel = spellCheckModel ZBaseDialog.__init__(self, parent,wx.ID_ANY, _extstr(u"spellcheckdialog.DialogTitle"), size = wx.Size(350, 340), style =wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER, name = u"ZSpellCheckDialog") #$NON-NLS-1$ #$NON-NLS-2$ ZPersistentDialogMixin.__init__(self, IZBlogAppUserPrefsKeys.SPELLCHECK_DIALOG, False, True)
def __init__(self, parent): ZBaseDialog.__init__(self, parent, wx.ID_ANY, _extstr(u"aboutdialog.AboutRaven")) #$NON-NLS-1$ size = self.GetBestSize() self.SetSize(size)
def ShowModal(self): self.testPanel.startTest() ZBaseDialog.ShowModal(self)
def __init__(self, parent, model): # model is instance of ZTableModel. self.model = model ZBaseDialog.__init__(self, parent, wx.ID_ANY, _extstr(u"tabledialog.DialogTitle"), style = wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER, name = u"ZInsertTableDialog") #$NON-NLS-1$ #$NON-NLS-2$ bestHeight = self.GetBestSizeTuple()[1] self.SetSize(wx.Size(-1, bestHeight))
def __init__(self, parent): self.userPrefs = getApplicationModel().getUserProfile().getPreferences() self.feedbackEmailUserPrefsKey = IZAppUserPrefsKeys.FEEDBACK_DIALOG + u".email" #$NON-NLS-1$ ZBaseDialog.__init__(self, parent, wx.ID_ANY, _extstr(u"feedbackdialog.ZoundryRavenFeedback")) #$NON-NLS-1$ ZPersistentDialogMixin.__init__(self, IZAppUserPrefsKeys.FEEDBACK_DIALOG, True, True)
def __init__(self, ztest, parent, title, pos = wx.DefaultPosition, size = wx.DefaultSize, style = wx.DEFAULT_DIALOG_STYLE,): self.ztest = ztest ZBaseDialog.__init__(self, parent, wx.ID_ANY, title, pos = pos, size = size, style = style)