Exemple #1
0
	def __init__(self, parent):
		WizardPage.__init__(self, parent, pgid.GREETING)

		m1 = GT(u'Welcome to Debreate!')
		m2 = GT(u'Debreate aids in building packages for installation on Debian based systems. Use the arrows located in the top-right corner or the "Page" menu to navigate through the program. For some information on Debian packages use the reference links in the "Help" menu.')
		m3 = GT(u'For a video tutorial check the link below.')
		str_info = u'{}\n\n{}\n\n{}'.format(m1, m2, m3)

		# --- Information to be displayed about each mode
		txt_info = wx.StaticText(self, label=str_info)
		# Keep characters within the width of the window
		txt_info.Wrap(600)

		lnk_video = Hyperlink(self, wx.ID_ANY, GT(u'Building a Debian Package with Debreate'),
				u'http://www.youtube.com/watch?v=kx4D5eL6HKE')
		lnk_video.SetToolTipString(lnk_video.url)

		# *** Layout *** #

		lyt_info = wx.GridSizer()
		lyt_info.Add(txt_info, 1, wx.ALIGN_CENTER|wx.ALIGN_CENTER_VERTICAL)

		lyt_main = BoxSizer(wx.VERTICAL)
		lyt_main.Add(lyt_info, 4, wx.ALIGN_CENTER|wx.ALL, 10)
		lyt_main.Add(lnk_video, 2, wx.ALIGN_CENTER)

		self.SetAutoLayout(True)
		self.SetSizer(lyt_main)
		self.Layout()
Exemple #2
0
    def __init__(self, parent):
        WizardPage.__init__(self, parent, pgid.GREETING)

        # Bypass checking this page for build
        self.prebuild_check = False

        m1 = GT(u'Welcome to Debreate!')
        m2 = GT(
            u'Debreate aids in building packages for installation on Debian based systems. Use the arrows located in the top-right corner or the "Page" menu to navigate through the program. For some information on Debian packages use the reference links in the "Help" menu.'
        )
        m3 = GT(u'For a video tutorial check the link below.')
        txt_bin = u'{}\n\n{}\n\n{}'.format(m1, m2, m3)
        txt_src = u'This mode is not fully functional'
        txt_upd = u'This mode is not fully functional'

        self.mode_info = (
            (
                u'Build Package from Precompiled Files',
                txt_bin,
            ),
            (
                u'Build Debian Source Package',
                txt_src,
            ),
            (
                u'Update a Package',
                txt_upd,
            ),
        )

        # --- Information to be displayed about each mode
        self.txt_info = wx.StaticText(self)

        lnk_video = Hyperlink(self, wx.ID_ANY,
                              GT(u'Building a Debian Package with Debreate'),
                              u'http://www.youtube.com/watch?v=kx4D5eL6HKE')
        lnk_video.SetToolTipString(lnk_video.url)

        # *** Layout *** #

        lyt_info = wx.GridSizer()
        lyt_info.Add(self.txt_info, 1,
                     wx.ALIGN_CENTER | wx.ALIGN_CENTER_VERTICAL)

        lyt_main = BoxSizer(wx.VERTICAL)
        lyt_main.Add(lyt_info, 4, wx.ALIGN_CENTER | wx.ALL, 10)
        lyt_main.Add(lnk_video, 2, wx.ALIGN_CENTER)

        self.SetAutoLayout(True)
        self.SetSizer(lyt_main)
        self.Layout()
Exemple #3
0
    def AddURL(self, url):
        if not isinstance(url, Hyperlink):
            url = Hyperlink(self, wx.ID_ANY, label=url, url=url)

        self.lyt_urls.Add(url, 0, wx.ALIGN_CENTER_VERTICAL)

        self.Layout()
        self.Fit()
        self.SetMinSize(self.GetSize())
        self.CenterOnParent()
Exemple #4
0
    def SetWebsites(self, url_list):
        insertion_point = GetContainerItemCount(self.about_layout_V1) - 1

        link_layout = BoxSizer(wx.VERTICAL)
        for label, link in url_list:
            link_layout.Add(
                Hyperlink(self.t_about, wx.ID_ANY, label=label, url=link), 0,
                wx.ALIGN_CENTER, 10)

        self.about_layout_V1.Insert(insertion_point, link_layout, 0,
                                    wx.ALL | wx.ALIGN_CENTER, 10)
        self.t_about.Layout()