dialogs/AboutDialog.py
branchpython3
changeset 3750 f62625418bff
parent 3586 cbc6a6ccd52e
child 3906 f831ff63ca6e
equal deleted inserted replaced
3749:fda6c1a37662 3750:f62625418bff
    29 """
    29 """
    30 This module contains classes extended from wx.Dialog used by the GUI.
    30 This module contains classes extended from wx.Dialog used by the GUI.
    31 """
    31 """
    32 
    32 
    33 
    33 
    34 from __future__ import absolute_import
    34 
    35 import os
    35 import os
    36 import wx
    36 import wx
    37 import wx.adv
    37 import wx.adv
    38 from wx.lib.agw.hyperlink import HyperLinkCtrl
    38 from wx.lib.agw.hyperlink import HyperLinkCtrl
    39 
    39 
   120         close.SetDefault()
   120         close.SetDefault()
   121 
   121 
   122         developer = wx.TextCtrl(notebook, style=wx.TE_READONLY | wx.TE_MULTILINE)
   122         developer = wx.TextCtrl(notebook, style=wx.TE_READONLY | wx.TE_MULTILINE)
   123         translators = wx.TextCtrl(notebook, style=wx.TE_READONLY | wx.TE_MULTILINE)
   123         translators = wx.TextCtrl(notebook, style=wx.TE_READONLY | wx.TE_MULTILINE)
   124 
   124 
   125         developer.SetValue(u'\n'.join(info.Developers))
   125         developer.SetValue('\n'.join(info.Developers))
   126         translators.SetValue(u'\n'.join(info.Translators))
   126         translators.SetValue('\n'.join(info.Translators))
   127 
   127 
   128         notebook.AddPage(developer, text=_("Written by"))
   128         notebook.AddPage(developer, text=_("Written by"))
   129         notebook.AddPage(translators, text=_("Translated by"))
   129         notebook.AddPage(translators, text=_("Translated by"))
   130 
   130 
   131         btnSizer = wx.BoxSizer(wx.HORIZONTAL)
   131         btnSizer = wx.BoxSizer(wx.HORIZONTAL)