From 365c79d46c3804dd4b3f796bd2fcd4e3ddf1186b Mon Sep 17 00:00:00 2001 From: Michael Rasmussen Date: Mon, 8 Apr 2024 23:19:50 +0200 Subject: [PATCH] Initial upload Signed-off-by: Michael Rasmussen --- .gitignore | 22 +++ __init__.py | 0 icons/245796-200.png | Bin 0 -> 4980 bytes icons/245796-50.png | Bin 0 -> 5126 bytes lensdatabase.ui | 341 +++++++++++++++++++++++++++++++++++++++++++ lensdb.py | 25 ++++ 6 files changed, 388 insertions(+) create mode 100644 .gitignore create mode 100644 __init__.py create mode 100644 icons/245796-200.png create mode 100644 icons/245796-50.png create mode 100644 lensdatabase.ui create mode 100644 lensdb.py diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e2b7bc7 --- /dev/null +++ b/.gitignore @@ -0,0 +1,22 @@ +.eric6project/ +.eric7project/ +.ropeproject/ +.jedi/ +.directory/ +*.pyc +*.pyo +*.orig +*.bak +*.rej +*~ +cur/ +tmp/ +__pycache__/ +__pypackages__ +*.DS_Store +.pytest_cache/ +venv/ +.venv/ +env/ +.env/ +*.epj diff --git a/__init__.py b/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/icons/245796-200.png b/icons/245796-200.png new file mode 100644 index 0000000000000000000000000000000000000000..43c08240b72ee03cda34057e720a46ed9d8f181b GIT binary patch literal 4980 zcmcgwc{J3I*Zz#L@4GBz8%80+*moK-e2EmwlCg~4kPJdbN%m#v+sIZ(%9efK6;p;t zWE&HTn6V5cOZ@u1f4~2}?>*;vo^$`Z=brPNd+w8LYjc^4U5p(704}5j;_6=={x4XW z|8licP0?Rr3^PSuWBpq(tX@ffd$tgZ8({#zA@E;-fTsm#06;((i7>eqSwJg{YLvSk z{;nr;I&DGf61ec+J7AEBm^wr{9>ydABw0h>(<|3S$dF zNO}^4U&tE|`vfi*Z4Vk0ep*C3pdE*9a_kq*hHvS_K6*VD)6?W%9WkcY;qUl)CcHfM z7bt<(lvVowo*;F8pV?VeuQf3!6O8ErkW40+Xs*OP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q!&2BL*z)*wV~x zCDY#|9or-4T$loLeN?Hen^We;1Zl)kK8P}7o-mLdPByyy=e`Ta_*o0`SM_vZd?&b9 z2jDg%%WIeh!X&1=1Xb{z{JrtRi#iTTTzI&sizN2|MV;;8nz$PK|3fD{ Yq9LT`+TxPg-`EU5n%N*~Ox^GQ2SeZ@ZU6uP literal 0 HcmV?d00001 diff --git a/icons/245796-50.png b/icons/245796-50.png new file mode 100644 index 0000000000000000000000000000000000000000..15a545d4e45177b5631b77f92918a6c573fa7056 GIT binary patch literal 5126 zcmeHKc~leU7N3X;qSj)SB7%%TMbPXCSs)-1mViMBhzp=hCKDJTi^*Ujq6V~rpeV-$ ztN27MloDlg1w`;wp~a$Baf1g^ZKa@Ms)E|5@+JWh&+9qwc+Ts8PG&Om-R1Y)`}^+w z&diq3kbv>l_SOIZj28w9#Q2?Vx~xXy|I@rP%JJKUvaRMIP$&*#*$*?6b^uY1VFD4W|?p-nTm`AWMFHC+Ff6x?gOHw^HXSo{=A2c|x3~ zw?Elj&_Vrq8w|o0vtHbbNk?YngnD%D&U$e$Ihye7dO>3@*xq)#$KUx%XTXkrt0bc1 zJ!Af<(wwG@X;(Xs&qt$67vAZdrIWu&6v-L6F-snF^iN*;tvyOBuQyJm%?v8s$4I2%h)p|Y0 zgX3BixTQbXnk4b$^fXkj-CnKLUp-1|vYts0oo-6x&3rI+j^yR!>6-`(rn@mN?cM#& zxRi!l{1GWN!N$4$nhn|OPsYXPS@%=60>8xM-%#Z}fg8{R!1=h2peHZc`|5sj>DrcU>pkLdYu&}9fbc&3CC6Cf zk2^$ncBe7F5|7b&A5ppi7N_UkExr}C*6G^`^RlZN{{>j4*TsKbaVw?0t+lPSHm>E( z8$j|@onMprI36!M9g3IN643%4tdx@>sZxTFb#fJ6cL3n&ty4j80)l}OBo0;ZiBGC) zi6AQF6Bn~YRFTRTiAMvI)kt`9NCcdm0CS~8Z!c?49S;YPBNzngAP{1de=I2S3Fe>GlA88U6i^ZTpB!q_0 zNK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zgOv%!kXYc%=V3Kgc@qLgmJlwFS`iT(5LrKAqS4PG!mwAn(gz&1Prp1CJwZH~%mq#nT=WnA$s^ZuQo~uA83mZ#OYry2MaMqdO6ye3J$&q^@F16s zrI9NL?iQC)56(|${MloiD0@U&ZHzcc#n5-izb>R!$4A6?<gEkMwm0ADzMd25`_=Q7kbO56PorA_V!Z literal 0 HcmV?d00001 diff --git a/lensdatabase.ui b/lensdatabase.ui new file mode 100644 index 0000000..173a05c --- /dev/null +++ b/lensdatabase.ui @@ -0,0 +1,341 @@ + + + + + + False + dialog + Glade + Michael Rasmussen <mir@datanom.net> + icons/245796-200.png + gpl-3-0 + + + False + vertical + 2 + + + False + end + + + False + False + 0 + + + + + + + + + + True + False + window + 500 + 400 + + + + True + False + vertical + + + True + False + + + True + False + _File + True + + + True + False + + + gtk-new + True + False + True + True + + + + + gtk-open + True + False + True + True + + + + + gtk-save + True + False + True + True + + + + + gtk-save-as + True + False + True + True + + + + + True + False + + + + + gtk-quit + True + False + True + True + + + + + + + + + + True + False + _Edit + True + + + True + False + + + gtk-cut + True + False + True + True + + + + + gtk-copy + True + False + True + True + + + + + gtk-paste + True + False + True + True + + + + + gtk-delete + True + False + True + True + + + + + + + + + True + False + _View + True + + + + + True + False + _Help + True + + + True + False + + + gtk-about + True + False + True + True + + + + + + + + + False + True + 0 + + + + + True + False + + + True + False + 20 + vertical + 10 + start + + + gtk-find + True + True + True + True + True + + + True + True + 0 + + + + + gtk-add + True + True + True + True + True + + + True + True + 1 + + + + + True + True + True + + + True + False + Add a new lens manufactorer to database + icons/245796-50.png + + + + + True + True + 2 + + + + + False + False + 5 + 0 + + + + + + + + True + True + 1 + + + + + True + False + + + True + False + 10 + 10 + 10 + 10 + 6 + 6 + vertical + 2 + + + True + True + 0 + + + + + True + False + label + + + True + True + 1 + + + + + True + True + Unsaved changes + + + False + True + 2 + + + + + False + True + 2 + + + + + + diff --git a/lensdb.py b/lensdb.py new file mode 100644 index 0000000..9af5862 --- /dev/null +++ b/lensdb.py @@ -0,0 +1,25 @@ +#!/usr/bin/python + +import gi + +gi.require_version("Gtk", "3.0") +from gi.repository import Gtk + +dirty = False + +class Handler: + def onDestroy(self, *args): + Gtk.main_quit() + def onQuit(self, *args): + if dirty: + """ show warning """ + self.onDestroy(self, args) + +builder = Gtk.Builder() +builder.add_from_file("lensdatabase.ui") +builder.connect_signals(Handler()) + +window = builder.get_object("main_window") +window.show_all() + +Gtk.main() -- 2.39.5