diff --git a/usr/logo.png b/usr/logo.png new file mode 100644 index 000000000..022c1aed9 Binary files /dev/null and b/usr/logo.png differ diff --git a/usr/openmv-ide.glade b/usr/openmv-ide.glade index 068a9b0ff..fbd51bb30 100644 --- a/usr/openmv-ide.glade +++ b/usr/openmv-ide.glade @@ -2,6 +2,65 @@ + + False + 5 + True + center-on-parent + True + dialog + OpenMV IDE v1.1 + Copyright (c) 2014 Ibrahim Abdalkader <i.abdalkader@gmail.com> + Machine vision with Python! + https://openmv.io/ + https://openmv.io/ + The MIT License (MIT) + +Copyright (c) 2014 Ibrahim Abdalkader <i.abdalkader@gmail.com> + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE + Ibrahim Abdalkader +Kwabena W. Agyeman + logo.png + + + True + False + 2 + + + True + False + end + + + True + True + 0 + + + + + + + + @@ -337,6 +396,7 @@ False True True + diff --git a/usr/openmv-ide.py b/usr/openmv-ide.py index 0b777b952..24f07ef54 100755 --- a/usr/openmv-ide.py +++ b/usr/openmv-ide.py @@ -164,6 +164,7 @@ class OMVGtk: "on_new_file" : self.new_file, "on_save_file" : self.save_file, "on_save_file_as" : self.save_file_as, + "on_about_dialog" : self.about_dialog, "on_save_template_activate" : self.save_template, "on_save_descriptor_activate" : self.save_descriptor, "on_ctrl_scale_value_changed" : self.on_ctrl_scale_value_changed, @@ -668,6 +669,11 @@ class OMVGtk: self.file_path = os.path.join(basedir, widget.get_label()) self._load_file(self.file_path) + def about_dialog(self, widget): + dialog = self.builder.get_object("about_dialog") + dialog.run() + dialog.hide() + def text_changed(self, widget): self.save_button.set_sensitive(True) diff --git a/usr/openmv-ide.spec b/usr/openmv-ide.spec index 78a21818d..6bf56edd5 100644 --- a/usr/openmv-ide.spec +++ b/usr/openmv-ide.spec @@ -18,7 +18,8 @@ if sysname in ["Linux", "Darwin"]: else: exe_name ='openmv-ide.exe' -exe_tree = [('openmv-ide.glade', 'openmv-ide.glade', 'DATA')] +exe_tree = [('logo.png', 'logo.png', 'DATA'), + ('openmv-ide.glade', 'openmv-ide.glade', 'DATA')] exe = EXE(pyz, a.scripts,