def __init__(self, parent, profilesModel): self.profilesModel = profilesModel ZValidatingHeaderDialog.__init__( self, parent, wx.ID_ANY, _extstr(u"newprofile.CreateNewProfile")) #$NON-NLS-1$ # Tell the dialog to resize itself to best-fit its children. self.Fit()
def __init__(self, parent, model): self.model = model ZValidatingHeaderDialog.__init__(self, parent, wx.ID_ANY, _extstr(u"linkdialog.EnterLinkInfo"), style = wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER, name = u"ZLinkDialog") #$NON-NLS-2$ #$NON-NLS-1$ bestHeight = self.GetBestSizeTuple()[1] self.SetMinSize(wx.Size(-1, bestHeight)) ZPersistentDialogMixin.__init__(self, IZBlogAppUserPrefsKeys.LINK_DIALOG, True, True)
def __init__(self, parent): self.model = ZThumbnailImageDialogModel() title = _extstr(u"imagehandlerdialog.Generate_Thumbnail") #$NON-NLS-1$ ZValidatingHeaderDialog.__init__(self, parent, wx.ID_ANY, title, style = wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER, name = u"ZThumbnailImageDialog") #$NON-NLS-1$ bestHeight = self.GetBestSizeTuple()[1] self.SetMinSize(wx.Size(-1, bestHeight)) ZPersistentDialogMixin.__init__(self, IZBlogAppUserPrefsKeys.DND_THUMBNAIL_DIALOG, True, True)
def __init__(self, store, parent): self.model = ZEditMediaStorageModel(store) self.title = _extstr(u"editstoredialog.EditSettings") % store.getName() #$NON-NLS-1$ self.widgetFactory = ZWidgetFactory(self, True) self.widgets = [] ZValidatingHeaderDialog.__init__(self, parent, wx.ID_ANY, self.title) self.SetSize(self.GetBestSize())
def __init__(self, parent): self.model = ZAddTemplateFromBlogModel() ZValidatingHeaderDialog.__init__( self, parent, wx.ID_ANY, _extstr(u"templatedialogs.AddTemplate")) #$NON-NLS-1$ ZPersistentDialogMixin.__init__( self, IZBlogAppUserPrefsKeys.ADD_TEMPLATE_FROM_BLOG_DIALOG, True, True)
def __init__(self, parent, model): # model is instance of ZEditImageModel. self.model = model self.aspectRatio = 0.0 title = _extstr(u"imagedialog.EditImageInformation") #$NON-NLS-1$ if not self.model.isEditMode(): title = _extstr(u"imagedialog.InsertImage") #$NON-NLS-1$ ZValidatingHeaderDialog.__init__(self, parent, wx.ID_ANY, title, style = wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER, name = u"ZImageDialog") #$NON-NLS-1$ bestHeight = self.GetBestSizeTuple()[1] self.SetMinSize(wx.Size(-1, bestHeight)) ZPersistentDialogMixin.__init__(self, IZBlogAppUserPrefsKeys.IMAGE_DIALOG, True, True)
def __init__(self, parent): self.model = ZAddTemplateFromBlogModel() ZValidatingHeaderDialog.__init__(self, parent, wx.ID_ANY, _extstr(u"templatedialogs.AddTemplate")) #$NON-NLS-1$ ZPersistentDialogMixin.__init__(self, IZBlogAppUserPrefsKeys.ADD_TEMPLATE_FROM_BLOG_DIALOG, True, True)
def __init__(self, parent, profilesModel): self.profilesModel = profilesModel ZValidatingHeaderDialog.__init__(self, parent, wx.ID_ANY, _extstr(u"newprofile.CreateNewProfile")) #$NON-NLS-1$ # Tell the dialog to resize itself to best-fit its children. self.Fit()