Beispiel #1
0
 def onShowAbout(self, evt):
     info = AboutDialogInfo()
     info.SetVersion("1.0")
     info.SetName("Memory")
     info.SetDescription("A simple memory game written with WxPython.")
     info.SetCopyright(u"Olivier Bélanger (2016)")
     AboutBox(info)
Beispiel #2
0
 def AboutMe(self,evt):
     info=AboutDialogInfo()
     info.SetName("测井WIS查看小工具")
     info.SetVersion("1.0 Beta")
     info.SetDescription("此工具用于测井WIS格式文件的查看,可导出曲线和其它参数数据.")
     info.SetCopyright("(C) 2014 liliang <*****@*****.**>")
     AboutBox(info)
Beispiel #3
0
def on_about():
    about_info = AboutDialogInfo()
    about_info.SetName('MagComPy')
    about_info.SetDescription(about_text)
    about_info.SetCopyright('Copyright (C) 2021 Leon Kaub')
    about_info.SetVersion(version_string)
    about_info.SetWebSite('https://github.com/leonkaub/MagComPy')

    AboutBox(about_info)
Beispiel #4
0
 def onHelpAbout(self, evt):
     info = AboutDialogInfo()
     info.SetName(APP_NAME)
     info.SetVersion(APP_VERSION)
     if sys.platform != "darwin":
         info.SetIcon(DSPDemo_Icon_Small.GetIcon())
     info.SetCopyright("(C) %s" % APP_COPYRIGHT)
     info.SetDescription(
         "\nDSPDemo est une application conçue pour analyser "
         "et visualiser différents processus audio.\n")
     AboutBox(info, self)
Beispiel #5
0
    def showAbout(self, evt):
        info = AboutDialogInfo()

        description = "Soundgrain is a graphical interface where " \
        "users can draw and edit trajectories to control granular sound synthesis.\n\n" \
        "Soundgrain is written with Python and " \
        "WxPython and uses pyo as its audio engine.\n\n" \

        info.SetName(NAME)
        info.SetVersion('%s' % SG_VERSION)
        info.SetDescription(description)
        info.SetCopyright(u'(C) %s Olivier Belanger' % SG_YEAR)
        AboutBox(info)
Beispiel #6
0
class MainFrame(gui.MainFrame):
    """ Main application class. Here are defined all the methods and
        functions that control the entire application """
    def __init__(self):
        # Set info about the application
        self.info = AboutDialogInfo()
        with open('../version.txt', 'r') as version_file:
            self.info.SetVersion(version_file.read().__str__())
        self.info.SetName(u"CNC ToolDB")
        self.info.SetCopyright(
            u"Copyright (c) 2019 Simão Amorim <*****@*****.**>")
        with open('../LICENSE', 'r') as license_file:
            self.info.SetLicence(license_file.read().encode('UTF-8'))
        self.info.SetDevelopers([u"Simão Amorim ([email protected])"])
        # Initialize the window
        super().__init__(parent=None,
                         title=self.info.GetName() + " " +
                         self.info.GetVersion())
        self.DB = sql.DB()
        self.init_binds()
        self.update_chooser()
        self.Show()

    def init_binds(self):
        """Bind GUI events to the appropriate handler methods"""
        self.Bind(wx.EVT_MENU, self.menubar_handler, self.menu_bar)
        self.Bind(wx.EVT_CHOICE, self.set_machine, self.machine_chooser)

    def update_chooser(self):
        for item in self.DB.get_machines():
            self.machine_chooser.Append(item)

    def set_machine(self, event):
        temp_id = event.GetId()
        if temp_id == self.machine_chooser.Id:
            print("Choice: %s" % self.machine_chooser.GetStringSelection())

    def menubar_handler(self, event):
        """Method to handle events from the menu bar in the main frame"""
        temp_id = event.GetId()
        if temp_id == self.file_menu_exit.Id:
            self.Destroy()
        elif temp_id == self.help_menu_about.Id:
            AboutBox(
                info=self.info,
                parent=self,
            )
        event.StopPropagation()
Beispiel #7
0
 def on_show_about(self, evt):
     info = AboutDialogInfo()
     info.SetDescription(
         '\n'.join(
             wrap(
                 "Ces formulaires vous proposent différents calculs "
                 "relatifs aux taux d'hydratation de la pâte et du levain",
                 width=50), ), )
     info.SetDevelopers(["Franck Barbenoire"])
     info.SetCopyright(u"Franck Barbenoire (2017)")
     info.SetLicense(u"GPL 3.0")
     info.SetName("Formulaires de boulangerie")
     info.SetVersion("1.0")
     info.SetWebSite(
         "https://github.com/franckinux/formulaires_boulangerie", "")
     AboutBox(info)
    def show(self, parent):

        if parent:
            self.parent = parent
        if not self.docwriter:
            self.docwriter = self.developer

        info = AboutDialogInfo()
        info.SetName(self.name)
        info.SetVersion(self.version)
        info.SetDescription(self.description)
        info.SetCopyright(self.copyright)
        info.SetWebSite(self.website)
        info.SetLicence(self.licence)
        info.AddDeveloper(self.developer)
        info.AddDocWriter(self.docwriter)
        info.AddArtist(self.artist)
        AboutBox(info)  #,self.parent)
Beispiel #9
0
class AboutDlg:
    def __init__(self, parent=None):
        self.info = AboutDialogInfo()
        self.info.SetIcon(icons.about.GetIcon())

        self.info.SetName('DICOM Sorting')
        self.info.SetVersion(dicomsort.__version__)

        self.info.SetCopyright('(C) 2011 - 2020 Jonathan Suever')
        self.info.SetWebSite(dicomsort.__website__)

        self.GenerateDescription()

        AboutBox(self.info, parent=parent)

    def GenerateDescription(self):
        description = ("      Program designed to sort DICOM images       \n" +
                       "     into directories based upon DICOM header     \n" +
                       "      information. The program also provides      \n" +
                       "       additional functionality such as the       \n" +
                       "anonymization of DICOM images for patient privacy.")

        self.info.SetDescription(description)
Beispiel #10
0
class AboutDlg:
    def __init__(self, parent=None):
        self.info = AboutDialogInfo()
        self.info.SetIcon(icons.about.GetIcon())

        self.info.SetName(meta.pretty_name)
        self.info.SetVersion(meta.version)

        self.info.SetCopyright(meta.copyright)
        self.info.SetWebSite(meta.website)

        self.GenerateDescription()

        AboutBox(self.info, parent=parent)

    def GenerateDescription(self):
        description = ("      Program designed to sort DICOM images       \n" +
                       "     into directories based upon DICOM header     \n" +
                       "      information. The program also provides      \n" +
                       "       additional functionality such as the       \n" +
                       "anonymization of DICOM images for patient privacy.")

        self.info.SetDescription(description)