From fdc752ac0ce8279344bb795e498b292da836905b Mon Sep 17 00:00:00 2001 From: Juliette Monsel Date: Sat, 14 Jan 2017 20:36:37 +0100 Subject: [PATCH] modified code source to make it compatible with linux installed version to avoid customizing source for each distro --- .gitignore | 1 + BraceletGenerator/bracelet.py | 2 +- BraceletGenerator/constantes.py | 27 +- BraceletGenerator/doc/doc.html | 0 BraceletGenerator/doc/doc_fr.html | 0 BraceletGenerator/doc/style.css | 0 BraceletGenerator/images/about.png | Bin BraceletGenerator/images/aide.png | Bin BraceletGenerator/images/bg.png | Bin BraceletGenerator/images/bicolore.png | Bin BraceletGenerator/images/bicolore_en.png | Bin BraceletGenerator/images/bicolore_fr.png | Bin BraceletGenerator/images/bicolore_m.png | Bin BraceletGenerator/images/chevrons.png | Bin BraceletGenerator/images/color.png | Bin BraceletGenerator/images/color_m.png | Bin BraceletGenerator/images/couleurs_en.png | Bin BraceletGenerator/images/couleurs_fr.png | Bin BraceletGenerator/images/efface.png | Bin BraceletGenerator/images/efface_m.png | Bin BraceletGenerator/images/exit.png | Bin BraceletGenerator/images/exit_m.png | Bin BraceletGenerator/images/export.png | Bin BraceletGenerator/images/export_m.png | Bin BraceletGenerator/images/favicon.ico | Bin BraceletGenerator/images/fg.png | Bin BraceletGenerator/images/icon.ico | Bin BraceletGenerator/images/icon128.png | Bin BraceletGenerator/images/icon16.png | Bin BraceletGenerator/images/icon22.png | Bin BraceletGenerator/images/icon24.png | Bin BraceletGenerator/images/icon32.png | Bin BraceletGenerator/images/icon48.png | Bin BraceletGenerator/images/icon64.png | Bin BraceletGenerator/images/main_en.png | Bin BraceletGenerator/images/main_fr.png | Bin BraceletGenerator/images/moins.png | Bin BraceletGenerator/images/moins_m.png | Bin BraceletGenerator/images/move.png | Bin BraceletGenerator/images/move_e.png | Bin BraceletGenerator/images/move_e_m.png | Bin BraceletGenerator/images/move_m.png | Bin BraceletGenerator/images/move_n.png | Bin BraceletGenerator/images/move_n_m.png | Bin BraceletGenerator/images/move_ne.png | Bin BraceletGenerator/images/move_ne_m.png | Bin BraceletGenerator/images/move_nw.png | Bin BraceletGenerator/images/move_nw_m.png | Bin BraceletGenerator/images/move_s.png | Bin BraceletGenerator/images/move_s_m.png | Bin BraceletGenerator/images/move_se.png | Bin BraceletGenerator/images/move_se_m.png | Bin BraceletGenerator/images/move_sw.png | Bin BraceletGenerator/images/move_sw_m.png | Bin BraceletGenerator/images/move_w.png | Bin BraceletGenerator/images/move_w_m.png | Bin BraceletGenerator/images/new.png | Bin BraceletGenerator/images/new_m.png | Bin BraceletGenerator/images/ouvrir.png | Bin BraceletGenerator/images/ouvrir_m.png | Bin BraceletGenerator/images/plus.png | Bin BraceletGenerator/images/plus_m.png | Bin BraceletGenerator/images/redo.png | Bin BraceletGenerator/images/rotation_dte.png | Bin BraceletGenerator/images/rotation_dte_m.png | Bin BraceletGenerator/images/rotation_gche.png | Bin BraceletGenerator/images/rotation_gche_m.png | Bin BraceletGenerator/images/sauver.png | Bin BraceletGenerator/images/sauver_m.png | Bin BraceletGenerator/images/saveas.png | Bin BraceletGenerator/images/saveas_m.png | Bin BraceletGenerator/images/shifts.png | Bin BraceletGenerator/images/sym_horizontal.png | Bin BraceletGenerator/images/sym_horizontal_m.png | Bin BraceletGenerator/images/sym_vertical.png | Bin BraceletGenerator/images/sym_vertical_m.png | Bin BraceletGenerator/images/undo.png | Bin CHANGELOG.txt | 0 COPYING.txt | 0 MANIFEST.in | 8 +- .../BraceletGenerator/__init__.py | 0 .../BraceletGenerator/about.py | 115 -- .../BraceletGenerator/bicolore.py | 1339 ------------- .../BraceletGenerator/bracelet.py | 1724 ----------------- .../BraceletGenerator/constantes.py | 385 ---- .../BraceletGenerator/couleurs.py | 168 -- .../BraceletGenerator/custom_messagebox.py | 70 - .../BraceletGenerator/noeud.py | 337 ---- .../BraceletGenerator/scrollbar.py | 42 - archlinux/BraceletGenerator-1.4.0/CHANGELOG | 93 - archlinux/BraceletGenerator-1.4.0/COPYING | 674 ------- archlinux/BraceletGenerator-1.4.0/MANIFEST.in | 1 - archlinux/BraceletGenerator-1.4.0/README | 129 -- .../bracelet-generator | 35 - .../bracelet-generator.desktop | 14 - .../bracelet-generator.svg | 280 --- .../BraceletGenerator-1.4.0/doc/doc.html | 387 ---- .../BraceletGenerator-1.4.0/doc/doc_fr.html | 386 ---- .../BraceletGenerator-1.4.0/doc/style.css | 168 -- .../examples/chevrons.bracelet | Bin 270 -> 0 bytes .../examples/chevrons.png | Bin 50477 -> 0 bytes .../examples/cross.bicolor | Bin 166 -> 0 bytes .../examples/cross.png | Bin 91069 -> 0 bytes .../examples/stripes.bracelet | Bin 375 -> 0 bytes .../examples/stripes.png | Bin 82265 -> 0 bytes .../BraceletGenerator-1.4.0/images/about.png | Bin 722 -> 0 bytes .../BraceletGenerator-1.4.0/images/aide.png | Bin 846 -> 0 bytes .../BraceletGenerator-1.4.0/images/bg.png | Bin 272 -> 0 bytes .../images/bicolore.png | Bin 403 -> 0 bytes .../images/bicolore_en.png | Bin 19080 -> 0 bytes .../images/bicolore_fr.png | Bin 19323 -> 0 bytes .../images/bicolore_m.png | Bin 404 -> 0 bytes .../images/chevrons.png | Bin 32419 -> 0 bytes .../BraceletGenerator-1.4.0/images/color.png | Bin 1586 -> 0 bytes .../images/color_m.png | Bin 1005 -> 0 bytes .../images/couleurs_en.png | Bin 4987 -> 0 bytes .../images/couleurs_fr.png | Bin 5415 -> 0 bytes .../BraceletGenerator-1.4.0/images/efface.png | Bin 1371 -> 0 bytes .../images/efface_m.png | Bin 773 -> 0 bytes .../BraceletGenerator-1.4.0/images/exit.png | Bin 1588 -> 0 bytes .../BraceletGenerator-1.4.0/images/exit_m.png | Bin 863 -> 0 bytes .../BraceletGenerator-1.4.0/images/export.png | Bin 848 -> 0 bytes .../images/export_m.png | Bin 608 -> 0 bytes .../images/export_txt_m.png | Bin 714 -> 0 bytes .../images/favicon.ico | Bin 1150 -> 0 bytes .../BraceletGenerator-1.4.0/images/fg.png | Bin 272 -> 0 bytes .../images/icon128.png | Bin 7739 -> 0 bytes .../BraceletGenerator-1.4.0/images/icon16.png | Bin 613 -> 0 bytes .../BraceletGenerator-1.4.0/images/icon22.png | Bin 922 -> 0 bytes .../BraceletGenerator-1.4.0/images/icon24.png | Bin 1026 -> 0 bytes .../BraceletGenerator-1.4.0/images/icon32.png | Bin 1527 -> 0 bytes .../BraceletGenerator-1.4.0/images/icon48.png | Bin 2481 -> 0 bytes .../BraceletGenerator-1.4.0/images/icon64.png | Bin 3447 -> 0 bytes .../images/main_en.png | Bin 20308 -> 0 bytes .../images/main_fr.png | Bin 20226 -> 0 bytes .../BraceletGenerator-1.4.0/images/moins.png | Bin 289 -> 0 bytes .../images/moins_m.png | Bin 339 -> 0 bytes .../BraceletGenerator-1.4.0/images/move.png | Bin 1174 -> 0 bytes .../BraceletGenerator-1.4.0/images/move_e.png | Bin 817 -> 0 bytes .../images/move_e_m.png | Bin 667 -> 0 bytes .../BraceletGenerator-1.4.0/images/move_m.png | Bin 799 -> 0 bytes .../BraceletGenerator-1.4.0/images/move_n.png | Bin 831 -> 0 bytes .../images/move_n_m.png | Bin 634 -> 0 bytes .../images/move_ne.png | Bin 987 -> 0 bytes .../images/move_ne_m.png | Bin 691 -> 0 bytes .../images/move_nw.png | Bin 984 -> 0 bytes .../images/move_nw_m.png | Bin 679 -> 0 bytes .../BraceletGenerator-1.4.0/images/move_s.png | Bin 847 -> 0 bytes .../images/move_s_m.png | Bin 641 -> 0 bytes .../images/move_se.png | Bin 968 -> 0 bytes .../images/move_se_m.png | Bin 676 -> 0 bytes .../images/move_sw.png | Bin 976 -> 0 bytes .../images/move_sw_m.png | Bin 698 -> 0 bytes .../BraceletGenerator-1.4.0/images/move_w.png | Bin 807 -> 0 bytes .../images/move_w_m.png | Bin 662 -> 0 bytes .../BraceletGenerator-1.4.0/images/new.png | Bin 615 -> 0 bytes .../BraceletGenerator-1.4.0/images/new_m.png | Bin 379 -> 0 bytes .../BraceletGenerator-1.4.0/images/ouvrir.png | Bin 551 -> 0 bytes .../images/ouvrir_m.png | Bin 343 -> 0 bytes .../BraceletGenerator-1.4.0/images/plus.png | Bin 374 -> 0 bytes .../BraceletGenerator-1.4.0/images/plus_m.png | Bin 530 -> 0 bytes .../BraceletGenerator-1.4.0/images/redo.png | Bin 580 -> 0 bytes .../images/rotation_dte.png | Bin 1270 -> 0 bytes .../images/rotation_dte_m.png | Bin 585 -> 0 bytes .../images/rotation_gche.png | Bin 1259 -> 0 bytes .../images/rotation_gche_m.png | Bin 596 -> 0 bytes .../BraceletGenerator-1.4.0/images/sauver.png | Bin 1293 -> 0 bytes .../images/sauver_m.png | Bin 563 -> 0 bytes .../BraceletGenerator-1.4.0/images/saveas.png | Bin 1667 -> 0 bytes .../images/saveas_m.png | Bin 839 -> 0 bytes .../BraceletGenerator-1.4.0/images/shifts.png | Bin 7729 -> 0 bytes .../images/sym_horizontal.png | Bin 1397 -> 0 bytes .../images/sym_horizontal_m.png | Bin 748 -> 0 bytes .../images/sym_vertical.png | Bin 1390 -> 0 bytes .../images/sym_vertical_m.png | Bin 795 -> 0 bytes .../BraceletGenerator-1.4.0/images/undo.png | Bin 520 -> 0 bytes .../en_US/LC_MESSAGES/BraceletGenerator.mo | Bin 7328 -> 0 bytes .../fr_FR/LC_MESSAGES/BraceletGenerator.mo | Bin 7632 -> 0 bytes archlinux/BraceletGenerator-1.4.0/setup.py | 37 - bracelet-generator-1.4.0.tar.gz | Bin 0 -> 479215 bytes bracelet-generator.1 | 21 + bracelet-generator.1.gz | Bin 0 -> 531 bytes bracelet-generator.desktop | 5 +- bracelet-generator.mime | 7 + bracelet-generator.sharedmimeinfo | 9 + bracelet-generator.svg | 0 create_deb.txt | 23 + debian/DEBIAN/bracelet-generator.mime | 8 - debian/DEBIAN/control | 16 - debian/DEBIAN/copyright | 41 - debian/DEBIAN/rules | 30 - debian/bracelet-generator.mime | 7 + debian/bracelet-generator.sharedmimeinfo | 9 + debian/{DEBIAN => }/changelog | 20 +- debian/compat | 1 + debian/control | 23 + .../doc/bracelet-generator => }/copyright | 4 +- debian/rules | 38 + debian/source/format | 1 + debian/source/options | 1 + debian/usr/bin/bracelet-generator | 40 - .../applications/bracelet-generator.desktop | 13 - debian/usr/share/bracelet-generator/CHANGELOG | 93 - debian/usr/share/bracelet-generator/about.py | 115 -- .../usr/share/bracelet-generator/bicolore.py | 1339 ------------- .../usr/share/bracelet-generator/bracelet.py | 1724 ----------------- .../share/bracelet-generator/constantes.py | 385 ---- .../usr/share/bracelet-generator/couleurs.py | 168 -- .../bracelet-generator/custom_messagebox.py | 70 - .../examples/chevrons.bracelet | Bin 270 -> 0 bytes .../bracelet-generator/examples/chevrons.png | Bin 50477 -> 0 bytes .../bracelet-generator/examples/cross.bicolor | Bin 166 -> 0 bytes .../bracelet-generator/examples/cross.png | Bin 91069 -> 0 bytes .../examples/stripes.bracelet | Bin 375 -> 0 bytes .../bracelet-generator/examples/stripes.png | Bin 82265 -> 0 bytes .../share/bracelet-generator/images/about.png | Bin 722 -> 0 bytes .../share/bracelet-generator/images/aide.png | Bin 846 -> 0 bytes .../share/bracelet-generator/images/bg.png | Bin 272 -> 0 bytes .../bracelet-generator/images/bicolore.png | Bin 403 -> 0 bytes .../bracelet-generator/images/bicolore_en.png | Bin 19080 -> 0 bytes .../bracelet-generator/images/bicolore_fr.png | Bin 19323 -> 0 bytes .../bracelet-generator/images/bicolore_m.png | Bin 404 -> 0 bytes .../bracelet-generator/images/chevrons.png | Bin 32419 -> 0 bytes .../share/bracelet-generator/images/color.png | Bin 1586 -> 0 bytes .../bracelet-generator/images/color_m.png | Bin 1005 -> 0 bytes .../bracelet-generator/images/couleurs_en.png | Bin 4987 -> 0 bytes .../bracelet-generator/images/couleurs_fr.png | Bin 5415 -> 0 bytes .../bracelet-generator/images/efface.png | Bin 1371 -> 0 bytes .../bracelet-generator/images/efface_m.png | Bin 773 -> 0 bytes .../share/bracelet-generator/images/exit.png | Bin 1588 -> 0 bytes .../bracelet-generator/images/exit_m.png | Bin 863 -> 0 bytes .../bracelet-generator/images/export.png | Bin 848 -> 0 bytes .../bracelet-generator/images/export_m.png | Bin 608 -> 0 bytes .../images/export_txt_m.png | Bin 714 -> 0 bytes .../bracelet-generator/images/favicon.ico | Bin 1150 -> 0 bytes .../share/bracelet-generator/images/fg.png | Bin 272 -> 0 bytes .../bracelet-generator/images/icon128.png | Bin 7739 -> 0 bytes .../bracelet-generator/images/icon16.png | Bin 613 -> 0 bytes .../bracelet-generator/images/icon22.png | Bin 922 -> 0 bytes .../bracelet-generator/images/icon24.png | Bin 1026 -> 0 bytes .../bracelet-generator/images/icon32.png | Bin 1527 -> 0 bytes .../bracelet-generator/images/icon48.png | Bin 2481 -> 0 bytes .../bracelet-generator/images/icon64.png | Bin 3447 -> 0 bytes .../bracelet-generator/images/main_en.png | Bin 20308 -> 0 bytes .../bracelet-generator/images/main_fr.png | Bin 20226 -> 0 bytes .../share/bracelet-generator/images/moins.png | Bin 289 -> 0 bytes .../bracelet-generator/images/moins_m.png | Bin 339 -> 0 bytes .../share/bracelet-generator/images/move.png | Bin 1174 -> 0 bytes .../bracelet-generator/images/move_e.png | Bin 817 -> 0 bytes .../bracelet-generator/images/move_e_m.png | Bin 667 -> 0 bytes .../bracelet-generator/images/move_m.png | Bin 799 -> 0 bytes .../bracelet-generator/images/move_n.png | Bin 831 -> 0 bytes .../bracelet-generator/images/move_n_m.png | Bin 634 -> 0 bytes .../bracelet-generator/images/move_ne.png | Bin 987 -> 0 bytes .../bracelet-generator/images/move_ne_m.png | Bin 691 -> 0 bytes .../bracelet-generator/images/move_nw.png | Bin 984 -> 0 bytes .../bracelet-generator/images/move_nw_m.png | Bin 679 -> 0 bytes .../bracelet-generator/images/move_s.png | Bin 847 -> 0 bytes .../bracelet-generator/images/move_s_m.png | Bin 641 -> 0 bytes .../bracelet-generator/images/move_se.png | Bin 968 -> 0 bytes .../bracelet-generator/images/move_se_m.png | Bin 676 -> 0 bytes .../bracelet-generator/images/move_sw.png | Bin 976 -> 0 bytes .../bracelet-generator/images/move_sw_m.png | Bin 698 -> 0 bytes .../bracelet-generator/images/move_w.png | Bin 807 -> 0 bytes .../bracelet-generator/images/move_w_m.png | Bin 662 -> 0 bytes .../share/bracelet-generator/images/new.png | Bin 615 -> 0 bytes .../share/bracelet-generator/images/new_m.png | Bin 379 -> 0 bytes .../bracelet-generator/images/ouvrir.png | Bin 551 -> 0 bytes .../bracelet-generator/images/ouvrir_m.png | Bin 343 -> 0 bytes .../bracelet-generator/images/palette.svg | 234 --- .../share/bracelet-generator/images/plus.png | Bin 374 -> 0 bytes .../bracelet-generator/images/plus_m.png | Bin 530 -> 0 bytes .../share/bracelet-generator/images/redo.png | Bin 580 -> 0 bytes .../images/rotation_dte.png | Bin 1270 -> 0 bytes .../images/rotation_dte_m.png | Bin 585 -> 0 bytes .../images/rotation_gche.png | Bin 1259 -> 0 bytes .../images/rotation_gche_m.png | Bin 596 -> 0 bytes .../bracelet-generator/images/sauver.png | Bin 1293 -> 0 bytes .../bracelet-generator/images/sauver_m.png | Bin 563 -> 0 bytes .../bracelet-generator/images/saveas.png | Bin 1667 -> 0 bytes .../bracelet-generator/images/saveas_m.png | Bin 839 -> 0 bytes .../bracelet-generator/images/shifts.png | Bin 7729 -> 0 bytes .../images/sym_horizontal.png | Bin 1397 -> 0 bytes .../images/sym_horizontal_m.png | Bin 748 -> 0 bytes .../images/sym_vertical.png | Bin 1390 -> 0 bytes .../images/sym_vertical_m.png | Bin 795 -> 0 bytes .../share/bracelet-generator/images/undo.png | Bin 520 -> 0 bytes debian/usr/share/bracelet-generator/noeud.py | 337 ---- .../usr/share/bracelet-generator/scrollbar.py | 42 - .../usr/share/doc/bracelet-generator/README | 129 -- .../usr/share/doc/bracelet-generator/doc.html | 361 ---- .../share/doc/bracelet-generator/doc_fr.html | 364 ---- .../share/doc/bracelet-generator/style.css | 168 -- .../en_US/LC_MESSAGES/BraceletGenerator.mo | Bin 7328 -> 0 bytes .../fr_FR/LC_MESSAGES/BraceletGenerator.mo | Bin 7632 -> 0 bytes .../usr/share/pixmaps/bracelet-generator.svg | 280 --- examples/chevrons.bracelet | Bin examples/chevrons.png | Bin examples/cross.bicolor | Bin examples/cross.png | Bin examples/stripes.bracelet | Bin examples/stripes.png | Bin setup.py | 23 +- 303 files changed, 193 insertions(+), 12378 deletions(-) mode change 100755 => 100644 BraceletGenerator/doc/doc.html mode change 100755 => 100644 BraceletGenerator/doc/doc_fr.html mode change 100755 => 100644 BraceletGenerator/doc/style.css mode change 100755 => 100644 BraceletGenerator/images/about.png mode change 100755 => 100644 BraceletGenerator/images/aide.png mode change 100755 => 100644 BraceletGenerator/images/bg.png mode change 100755 => 100644 BraceletGenerator/images/bicolore.png mode change 100755 => 100644 BraceletGenerator/images/bicolore_en.png mode change 100755 => 100644 BraceletGenerator/images/bicolore_fr.png mode change 100755 => 100644 BraceletGenerator/images/bicolore_m.png mode change 100755 => 100644 BraceletGenerator/images/chevrons.png mode change 100755 => 100644 BraceletGenerator/images/color.png mode change 100755 => 100644 BraceletGenerator/images/color_m.png mode change 100755 => 100644 BraceletGenerator/images/couleurs_en.png mode change 100755 => 100644 BraceletGenerator/images/couleurs_fr.png mode change 100755 => 100644 BraceletGenerator/images/efface.png mode change 100755 => 100644 BraceletGenerator/images/efface_m.png mode change 100755 => 100644 BraceletGenerator/images/exit.png mode change 100755 => 100644 BraceletGenerator/images/exit_m.png mode change 100755 => 100644 BraceletGenerator/images/export.png mode change 100755 => 100644 BraceletGenerator/images/export_m.png mode change 100755 => 100644 BraceletGenerator/images/favicon.ico mode change 100755 => 100644 BraceletGenerator/images/fg.png mode change 100755 => 100644 BraceletGenerator/images/icon.ico mode change 100755 => 100644 BraceletGenerator/images/icon128.png mode change 100755 => 100644 BraceletGenerator/images/icon16.png mode change 100755 => 100644 BraceletGenerator/images/icon22.png mode change 100755 => 100644 BraceletGenerator/images/icon24.png mode change 100755 => 100644 BraceletGenerator/images/icon32.png mode change 100755 => 100644 BraceletGenerator/images/icon48.png mode change 100755 => 100644 BraceletGenerator/images/icon64.png mode change 100755 => 100644 BraceletGenerator/images/main_en.png mode change 100755 => 100644 BraceletGenerator/images/main_fr.png mode change 100755 => 100644 BraceletGenerator/images/moins.png mode change 100755 => 100644 BraceletGenerator/images/moins_m.png mode change 100755 => 100644 BraceletGenerator/images/move.png mode change 100755 => 100644 BraceletGenerator/images/move_e.png mode change 100755 => 100644 BraceletGenerator/images/move_e_m.png mode change 100755 => 100644 BraceletGenerator/images/move_m.png mode change 100755 => 100644 BraceletGenerator/images/move_n.png mode change 100755 => 100644 BraceletGenerator/images/move_n_m.png mode change 100755 => 100644 BraceletGenerator/images/move_ne.png mode change 100755 => 100644 BraceletGenerator/images/move_ne_m.png mode change 100755 => 100644 BraceletGenerator/images/move_nw.png mode change 100755 => 100644 BraceletGenerator/images/move_nw_m.png mode change 100755 => 100644 BraceletGenerator/images/move_s.png mode change 100755 => 100644 BraceletGenerator/images/move_s_m.png mode change 100755 => 100644 BraceletGenerator/images/move_se.png mode change 100755 => 100644 BraceletGenerator/images/move_se_m.png mode change 100755 => 100644 BraceletGenerator/images/move_sw.png mode change 100755 => 100644 BraceletGenerator/images/move_sw_m.png mode change 100755 => 100644 BraceletGenerator/images/move_w.png mode change 100755 => 100644 BraceletGenerator/images/move_w_m.png mode change 100755 => 100644 BraceletGenerator/images/new.png mode change 100755 => 100644 BraceletGenerator/images/new_m.png mode change 100755 => 100644 BraceletGenerator/images/ouvrir.png mode change 100755 => 100644 BraceletGenerator/images/ouvrir_m.png mode change 100755 => 100644 BraceletGenerator/images/plus.png mode change 100755 => 100644 BraceletGenerator/images/plus_m.png mode change 100755 => 100644 BraceletGenerator/images/redo.png mode change 100755 => 100644 BraceletGenerator/images/rotation_dte.png mode change 100755 => 100644 BraceletGenerator/images/rotation_dte_m.png mode change 100755 => 100644 BraceletGenerator/images/rotation_gche.png mode change 100755 => 100644 BraceletGenerator/images/rotation_gche_m.png mode change 100755 => 100644 BraceletGenerator/images/sauver.png mode change 100755 => 100644 BraceletGenerator/images/sauver_m.png mode change 100755 => 100644 BraceletGenerator/images/saveas.png mode change 100755 => 100644 BraceletGenerator/images/saveas_m.png mode change 100755 => 100644 BraceletGenerator/images/shifts.png mode change 100755 => 100644 BraceletGenerator/images/sym_horizontal.png mode change 100755 => 100644 BraceletGenerator/images/sym_horizontal_m.png mode change 100755 => 100644 BraceletGenerator/images/sym_vertical.png mode change 100755 => 100644 BraceletGenerator/images/sym_vertical_m.png mode change 100755 => 100644 BraceletGenerator/images/undo.png mode change 100755 => 100644 CHANGELOG.txt mode change 100755 => 100644 COPYING.txt mode change 100755 => 100644 MANIFEST.in delete mode 100755 archlinux/BraceletGenerator-1.4.0/BraceletGenerator/__init__.py delete mode 100755 archlinux/BraceletGenerator-1.4.0/BraceletGenerator/about.py delete mode 100755 archlinux/BraceletGenerator-1.4.0/BraceletGenerator/bicolore.py delete mode 100755 archlinux/BraceletGenerator-1.4.0/BraceletGenerator/bracelet.py delete mode 100755 archlinux/BraceletGenerator-1.4.0/BraceletGenerator/constantes.py delete mode 100755 archlinux/BraceletGenerator-1.4.0/BraceletGenerator/couleurs.py delete mode 100755 archlinux/BraceletGenerator-1.4.0/BraceletGenerator/custom_messagebox.py delete mode 100755 archlinux/BraceletGenerator-1.4.0/BraceletGenerator/noeud.py delete mode 100644 archlinux/BraceletGenerator-1.4.0/BraceletGenerator/scrollbar.py delete mode 100755 archlinux/BraceletGenerator-1.4.0/CHANGELOG delete mode 100755 archlinux/BraceletGenerator-1.4.0/COPYING delete mode 100644 archlinux/BraceletGenerator-1.4.0/MANIFEST.in delete mode 100644 archlinux/BraceletGenerator-1.4.0/README delete mode 100755 archlinux/BraceletGenerator-1.4.0/bracelet-generator delete mode 100644 archlinux/BraceletGenerator-1.4.0/bracelet-generator.desktop delete mode 100755 archlinux/BraceletGenerator-1.4.0/bracelet-generator.svg delete mode 100755 archlinux/BraceletGenerator-1.4.0/doc/doc.html delete mode 100755 archlinux/BraceletGenerator-1.4.0/doc/doc_fr.html delete mode 100755 archlinux/BraceletGenerator-1.4.0/doc/style.css delete mode 100755 archlinux/BraceletGenerator-1.4.0/examples/chevrons.bracelet delete mode 100755 archlinux/BraceletGenerator-1.4.0/examples/chevrons.png delete mode 100755 archlinux/BraceletGenerator-1.4.0/examples/cross.bicolor delete mode 100755 archlinux/BraceletGenerator-1.4.0/examples/cross.png delete mode 100755 archlinux/BraceletGenerator-1.4.0/examples/stripes.bracelet delete mode 100755 archlinux/BraceletGenerator-1.4.0/examples/stripes.png delete mode 100755 archlinux/BraceletGenerator-1.4.0/images/about.png delete mode 100755 archlinux/BraceletGenerator-1.4.0/images/aide.png delete mode 100755 archlinux/BraceletGenerator-1.4.0/images/bg.png delete mode 100755 archlinux/BraceletGenerator-1.4.0/images/bicolore.png delete mode 100755 archlinux/BraceletGenerator-1.4.0/images/bicolore_en.png delete mode 100755 archlinux/BraceletGenerator-1.4.0/images/bicolore_fr.png delete mode 100755 archlinux/BraceletGenerator-1.4.0/images/bicolore_m.png delete mode 100755 archlinux/BraceletGenerator-1.4.0/images/chevrons.png delete mode 100755 archlinux/BraceletGenerator-1.4.0/images/color.png delete mode 100755 archlinux/BraceletGenerator-1.4.0/images/color_m.png delete mode 100755 archlinux/BraceletGenerator-1.4.0/images/couleurs_en.png delete mode 100755 archlinux/BraceletGenerator-1.4.0/images/couleurs_fr.png delete mode 100755 archlinux/BraceletGenerator-1.4.0/images/efface.png delete mode 100755 archlinux/BraceletGenerator-1.4.0/images/efface_m.png delete mode 100755 archlinux/BraceletGenerator-1.4.0/images/exit.png delete mode 100755 archlinux/BraceletGenerator-1.4.0/images/exit_m.png delete mode 100755 archlinux/BraceletGenerator-1.4.0/images/export.png delete mode 100755 archlinux/BraceletGenerator-1.4.0/images/export_m.png delete mode 100644 archlinux/BraceletGenerator-1.4.0/images/export_txt_m.png delete mode 100755 archlinux/BraceletGenerator-1.4.0/images/favicon.ico delete mode 100755 archlinux/BraceletGenerator-1.4.0/images/fg.png delete mode 100755 archlinux/BraceletGenerator-1.4.0/images/icon128.png delete mode 100755 archlinux/BraceletGenerator-1.4.0/images/icon16.png delete mode 100755 archlinux/BraceletGenerator-1.4.0/images/icon22.png delete mode 100755 archlinux/BraceletGenerator-1.4.0/images/icon24.png delete mode 100755 archlinux/BraceletGenerator-1.4.0/images/icon32.png delete mode 100755 archlinux/BraceletGenerator-1.4.0/images/icon48.png delete mode 100755 archlinux/BraceletGenerator-1.4.0/images/icon64.png delete mode 100755 archlinux/BraceletGenerator-1.4.0/images/main_en.png delete mode 100755 archlinux/BraceletGenerator-1.4.0/images/main_fr.png delete mode 100755 archlinux/BraceletGenerator-1.4.0/images/moins.png delete mode 100755 archlinux/BraceletGenerator-1.4.0/images/moins_m.png delete mode 100755 archlinux/BraceletGenerator-1.4.0/images/move.png delete mode 100755 archlinux/BraceletGenerator-1.4.0/images/move_e.png delete mode 100755 archlinux/BraceletGenerator-1.4.0/images/move_e_m.png delete mode 100755 archlinux/BraceletGenerator-1.4.0/images/move_m.png delete mode 100755 archlinux/BraceletGenerator-1.4.0/images/move_n.png delete mode 100755 archlinux/BraceletGenerator-1.4.0/images/move_n_m.png delete mode 100755 archlinux/BraceletGenerator-1.4.0/images/move_ne.png delete mode 100755 archlinux/BraceletGenerator-1.4.0/images/move_ne_m.png delete mode 100755 archlinux/BraceletGenerator-1.4.0/images/move_nw.png delete mode 100755 archlinux/BraceletGenerator-1.4.0/images/move_nw_m.png delete mode 100755 archlinux/BraceletGenerator-1.4.0/images/move_s.png delete mode 100755 archlinux/BraceletGenerator-1.4.0/images/move_s_m.png delete mode 100755 archlinux/BraceletGenerator-1.4.0/images/move_se.png delete mode 100755 archlinux/BraceletGenerator-1.4.0/images/move_se_m.png delete mode 100755 archlinux/BraceletGenerator-1.4.0/images/move_sw.png delete mode 100755 archlinux/BraceletGenerator-1.4.0/images/move_sw_m.png delete mode 100755 archlinux/BraceletGenerator-1.4.0/images/move_w.png delete mode 100755 archlinux/BraceletGenerator-1.4.0/images/move_w_m.png delete mode 100755 archlinux/BraceletGenerator-1.4.0/images/new.png delete mode 100755 archlinux/BraceletGenerator-1.4.0/images/new_m.png delete mode 100755 archlinux/BraceletGenerator-1.4.0/images/ouvrir.png delete mode 100755 archlinux/BraceletGenerator-1.4.0/images/ouvrir_m.png delete mode 100755 archlinux/BraceletGenerator-1.4.0/images/plus.png delete mode 100755 archlinux/BraceletGenerator-1.4.0/images/plus_m.png delete mode 100755 archlinux/BraceletGenerator-1.4.0/images/redo.png delete mode 100755 archlinux/BraceletGenerator-1.4.0/images/rotation_dte.png delete mode 100755 archlinux/BraceletGenerator-1.4.0/images/rotation_dte_m.png delete mode 100755 archlinux/BraceletGenerator-1.4.0/images/rotation_gche.png delete mode 100755 archlinux/BraceletGenerator-1.4.0/images/rotation_gche_m.png delete mode 100755 archlinux/BraceletGenerator-1.4.0/images/sauver.png delete mode 100755 archlinux/BraceletGenerator-1.4.0/images/sauver_m.png delete mode 100755 archlinux/BraceletGenerator-1.4.0/images/saveas.png delete mode 100755 archlinux/BraceletGenerator-1.4.0/images/saveas_m.png delete mode 100755 archlinux/BraceletGenerator-1.4.0/images/shifts.png delete mode 100755 archlinux/BraceletGenerator-1.4.0/images/sym_horizontal.png delete mode 100755 archlinux/BraceletGenerator-1.4.0/images/sym_horizontal_m.png delete mode 100755 archlinux/BraceletGenerator-1.4.0/images/sym_vertical.png delete mode 100755 archlinux/BraceletGenerator-1.4.0/images/sym_vertical_m.png delete mode 100755 archlinux/BraceletGenerator-1.4.0/images/undo.png delete mode 100644 archlinux/BraceletGenerator-1.4.0/locale/en_US/LC_MESSAGES/BraceletGenerator.mo delete mode 100644 archlinux/BraceletGenerator-1.4.0/locale/fr_FR/LC_MESSAGES/BraceletGenerator.mo delete mode 100755 archlinux/BraceletGenerator-1.4.0/setup.py create mode 100644 bracelet-generator-1.4.0.tar.gz create mode 100644 bracelet-generator.1 create mode 100644 bracelet-generator.1.gz create mode 100644 bracelet-generator.mime create mode 100644 bracelet-generator.sharedmimeinfo mode change 100755 => 100644 bracelet-generator.svg create mode 100644 create_deb.txt delete mode 100644 debian/DEBIAN/bracelet-generator.mime delete mode 100644 debian/DEBIAN/control delete mode 100755 debian/DEBIAN/copyright delete mode 100644 debian/DEBIAN/rules create mode 100644 debian/bracelet-generator.mime create mode 100644 debian/bracelet-generator.sharedmimeinfo rename debian/{DEBIAN => }/changelog (50%) create mode 100644 debian/compat create mode 100644 debian/control rename debian/{usr/share/doc/bracelet-generator => }/copyright (57%) create mode 100755 debian/rules create mode 100644 debian/source/format create mode 100644 debian/source/options delete mode 100755 debian/usr/bin/bracelet-generator delete mode 100644 debian/usr/share/applications/bracelet-generator.desktop delete mode 100755 debian/usr/share/bracelet-generator/CHANGELOG delete mode 100755 debian/usr/share/bracelet-generator/about.py delete mode 100755 debian/usr/share/bracelet-generator/bicolore.py delete mode 100755 debian/usr/share/bracelet-generator/bracelet.py delete mode 100755 debian/usr/share/bracelet-generator/constantes.py delete mode 100755 debian/usr/share/bracelet-generator/couleurs.py delete mode 100755 debian/usr/share/bracelet-generator/custom_messagebox.py delete mode 100644 debian/usr/share/bracelet-generator/examples/chevrons.bracelet delete mode 100644 debian/usr/share/bracelet-generator/examples/chevrons.png delete mode 100644 debian/usr/share/bracelet-generator/examples/cross.bicolor delete mode 100644 debian/usr/share/bracelet-generator/examples/cross.png delete mode 100644 debian/usr/share/bracelet-generator/examples/stripes.bracelet delete mode 100644 debian/usr/share/bracelet-generator/examples/stripes.png delete mode 100755 debian/usr/share/bracelet-generator/images/about.png delete mode 100755 debian/usr/share/bracelet-generator/images/aide.png delete mode 100755 debian/usr/share/bracelet-generator/images/bg.png delete mode 100755 debian/usr/share/bracelet-generator/images/bicolore.png delete mode 100755 debian/usr/share/bracelet-generator/images/bicolore_en.png delete mode 100755 debian/usr/share/bracelet-generator/images/bicolore_fr.png delete mode 100755 debian/usr/share/bracelet-generator/images/bicolore_m.png delete mode 100755 debian/usr/share/bracelet-generator/images/chevrons.png delete mode 100755 debian/usr/share/bracelet-generator/images/color.png delete mode 100755 debian/usr/share/bracelet-generator/images/color_m.png delete mode 100755 debian/usr/share/bracelet-generator/images/couleurs_en.png delete mode 100755 debian/usr/share/bracelet-generator/images/couleurs_fr.png delete mode 100755 debian/usr/share/bracelet-generator/images/efface.png delete mode 100755 debian/usr/share/bracelet-generator/images/efface_m.png delete mode 100755 debian/usr/share/bracelet-generator/images/exit.png delete mode 100755 debian/usr/share/bracelet-generator/images/exit_m.png delete mode 100755 debian/usr/share/bracelet-generator/images/export.png delete mode 100755 debian/usr/share/bracelet-generator/images/export_m.png delete mode 100644 debian/usr/share/bracelet-generator/images/export_txt_m.png delete mode 100755 debian/usr/share/bracelet-generator/images/favicon.ico delete mode 100755 debian/usr/share/bracelet-generator/images/fg.png delete mode 100755 debian/usr/share/bracelet-generator/images/icon128.png delete mode 100755 debian/usr/share/bracelet-generator/images/icon16.png delete mode 100755 debian/usr/share/bracelet-generator/images/icon22.png delete mode 100755 debian/usr/share/bracelet-generator/images/icon24.png delete mode 100755 debian/usr/share/bracelet-generator/images/icon32.png delete mode 100755 debian/usr/share/bracelet-generator/images/icon48.png delete mode 100755 debian/usr/share/bracelet-generator/images/icon64.png delete mode 100755 debian/usr/share/bracelet-generator/images/main_en.png delete mode 100755 debian/usr/share/bracelet-generator/images/main_fr.png delete mode 100755 debian/usr/share/bracelet-generator/images/moins.png delete mode 100755 debian/usr/share/bracelet-generator/images/moins_m.png delete mode 100755 debian/usr/share/bracelet-generator/images/move.png delete mode 100755 debian/usr/share/bracelet-generator/images/move_e.png delete mode 100755 debian/usr/share/bracelet-generator/images/move_e_m.png delete mode 100755 debian/usr/share/bracelet-generator/images/move_m.png delete mode 100755 debian/usr/share/bracelet-generator/images/move_n.png delete mode 100755 debian/usr/share/bracelet-generator/images/move_n_m.png delete mode 100755 debian/usr/share/bracelet-generator/images/move_ne.png delete mode 100755 debian/usr/share/bracelet-generator/images/move_ne_m.png delete mode 100755 debian/usr/share/bracelet-generator/images/move_nw.png delete mode 100755 debian/usr/share/bracelet-generator/images/move_nw_m.png delete mode 100755 debian/usr/share/bracelet-generator/images/move_s.png delete mode 100755 debian/usr/share/bracelet-generator/images/move_s_m.png delete mode 100755 debian/usr/share/bracelet-generator/images/move_se.png delete mode 100755 debian/usr/share/bracelet-generator/images/move_se_m.png delete mode 100755 debian/usr/share/bracelet-generator/images/move_sw.png delete mode 100755 debian/usr/share/bracelet-generator/images/move_sw_m.png delete mode 100755 debian/usr/share/bracelet-generator/images/move_w.png delete mode 100755 debian/usr/share/bracelet-generator/images/move_w_m.png delete mode 100755 debian/usr/share/bracelet-generator/images/new.png delete mode 100755 debian/usr/share/bracelet-generator/images/new_m.png delete mode 100755 debian/usr/share/bracelet-generator/images/ouvrir.png delete mode 100755 debian/usr/share/bracelet-generator/images/ouvrir_m.png delete mode 100644 debian/usr/share/bracelet-generator/images/palette.svg delete mode 100755 debian/usr/share/bracelet-generator/images/plus.png delete mode 100755 debian/usr/share/bracelet-generator/images/plus_m.png delete mode 100755 debian/usr/share/bracelet-generator/images/redo.png delete mode 100755 debian/usr/share/bracelet-generator/images/rotation_dte.png delete mode 100755 debian/usr/share/bracelet-generator/images/rotation_dte_m.png delete mode 100755 debian/usr/share/bracelet-generator/images/rotation_gche.png delete mode 100755 debian/usr/share/bracelet-generator/images/rotation_gche_m.png delete mode 100755 debian/usr/share/bracelet-generator/images/sauver.png delete mode 100755 debian/usr/share/bracelet-generator/images/sauver_m.png delete mode 100755 debian/usr/share/bracelet-generator/images/saveas.png delete mode 100755 debian/usr/share/bracelet-generator/images/saveas_m.png delete mode 100755 debian/usr/share/bracelet-generator/images/shifts.png delete mode 100755 debian/usr/share/bracelet-generator/images/sym_horizontal.png delete mode 100755 debian/usr/share/bracelet-generator/images/sym_horizontal_m.png delete mode 100755 debian/usr/share/bracelet-generator/images/sym_vertical.png delete mode 100755 debian/usr/share/bracelet-generator/images/sym_vertical_m.png delete mode 100755 debian/usr/share/bracelet-generator/images/undo.png delete mode 100755 debian/usr/share/bracelet-generator/noeud.py delete mode 100644 debian/usr/share/bracelet-generator/scrollbar.py delete mode 100644 debian/usr/share/doc/bracelet-generator/README delete mode 100644 debian/usr/share/doc/bracelet-generator/doc.html delete mode 100644 debian/usr/share/doc/bracelet-generator/doc_fr.html delete mode 100644 debian/usr/share/doc/bracelet-generator/style.css delete mode 100644 debian/usr/share/locale/en_US/LC_MESSAGES/BraceletGenerator.mo delete mode 100644 debian/usr/share/locale/fr_FR/LC_MESSAGES/BraceletGenerator.mo delete mode 100644 debian/usr/share/pixmaps/bracelet-generator.svg mode change 100755 => 100644 examples/chevrons.bracelet mode change 100755 => 100644 examples/chevrons.png mode change 100755 => 100644 examples/cross.bicolor mode change 100755 => 100644 examples/cross.png mode change 100755 => 100644 examples/stripes.bracelet mode change 100755 => 100644 examples/stripes.png diff --git a/.gitignore b/.gitignore index 28e8ea2..5c5449d 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ MANIFEST dist build *.egg-info +deb_dist diff --git a/BraceletGenerator/bracelet.py b/BraceletGenerator/bracelet.py index f4e5603..da53fe9 100755 --- a/BraceletGenerator/bracelet.py +++ b/BraceletGenerator/bracelet.py @@ -1273,7 +1273,7 @@ def del_recent_file(self, file): self.menu_file.entryconfigure(3, state="disabled") if file in RECENT_BICOLOR: - RECENT_BICOLOR.delete(file) + RECENT_BICOLOR.remove(file) def _importe(self, fils, g_out, fil_noeud): """ importe les informations sur le motif et actualise le bracelet """ diff --git a/BraceletGenerator/constantes.py b/BraceletGenerator/constantes.py index 0a7390f..0958c91 100755 --- a/BraceletGenerator/constantes.py +++ b/BraceletGenerator/constantes.py @@ -44,7 +44,17 @@ APP_NAME = "BraceletGenerator" # Get the local directory -PATH = os.path.split(__file__)[0] +if platform == 'linux' and os.path.exists("/usr/share/bracelet-generator"): + # the app has been installed + IMAGES_LOCATION = '/usr/share/bracelet-generator/images' + PATH_LOCALE = "/usr/share/locale" + PATH_DOC = '/usr/share/doc/bracelet-generator' +else: + PATH = os.path.split(__file__)[0] + IMAGES_LOCATION = os.path.join(PATH, 'images') + PATH_LOCALE = os.path.join(PATH, "locale") + PATH_DOC = os.path.join(PATH, "doc") + LOCAL_PATH = os.path.expanduser("~") LOCAL_PATH = os.path.join(LOCAL_PATH, "BraceletGenerator") if not os.path.exists(LOCAL_PATH): @@ -52,19 +62,14 @@ PATH_CONFIG = os.path.join(LOCAL_PATH, 'BraceletGenerator.ini') -IMAGES_LOCATION = os.path.join(PATH, 'images') - -PATH_LOCALE = os.path.join(PATH, "locale") - -PATH_DOC = os.path.join(PATH, "doc") - -# lecture du fichier de configuration +# configuration file CONFIG = ConfigParser() if os.path.exists(PATH_CONFIG): CONFIG.read(PATH_CONFIG) LANGUE = CONFIG.get("General","language") else: LANGUE = "" + CONFIG.add_section("General") CONFIG.set("General", "last_path", LOCAL_PATH) CONFIG.set("General", "recent_files", "") @@ -94,7 +99,7 @@ languages=[LANGUE], fallback=True) LANG.install() - +# get recent files RECENT_FILES = CONFIG.get("General", "recent_files").split(",") if RECENT_FILES == [""]: RECENT_FILES = [] @@ -102,7 +107,7 @@ if RECENT_BICOLOR == [""]: RECENT_BICOLOR = [] -# chemins des images +# pictures IM_EXIT_M = os.path.join(IMAGES_LOCATION, "exit_m.png") IM_EXIT = os.path.join(IMAGES_LOCATION, "exit.png") IM_EXPORT_M = os.path.join(IMAGES_LOCATION, "export_m.png") @@ -160,7 +165,7 @@ IM_SYM_HORIZ_M = os.path.join(IMAGES_LOCATION, "sym_horizontal_m.png") IM_SYM_VERT_M = os.path.join(IMAGES_LOCATION, "sym_vertical_m.png") - +# colors if platform == 'darwin' or PL == 'nt': BG_COLOR = '#F0F0F0' CANVAS_COLOR = "#ffffff" diff --git a/BraceletGenerator/doc/doc.html b/BraceletGenerator/doc/doc.html old mode 100755 new mode 100644 diff --git a/BraceletGenerator/doc/doc_fr.html b/BraceletGenerator/doc/doc_fr.html old mode 100755 new mode 100644 diff --git a/BraceletGenerator/doc/style.css b/BraceletGenerator/doc/style.css old mode 100755 new mode 100644 diff --git a/BraceletGenerator/images/about.png b/BraceletGenerator/images/about.png old mode 100755 new mode 100644 diff --git a/BraceletGenerator/images/aide.png b/BraceletGenerator/images/aide.png old mode 100755 new mode 100644 diff --git a/BraceletGenerator/images/bg.png b/BraceletGenerator/images/bg.png old mode 100755 new mode 100644 diff --git a/BraceletGenerator/images/bicolore.png b/BraceletGenerator/images/bicolore.png old mode 100755 new mode 100644 diff --git a/BraceletGenerator/images/bicolore_en.png b/BraceletGenerator/images/bicolore_en.png old mode 100755 new mode 100644 diff --git a/BraceletGenerator/images/bicolore_fr.png b/BraceletGenerator/images/bicolore_fr.png old mode 100755 new mode 100644 diff --git a/BraceletGenerator/images/bicolore_m.png b/BraceletGenerator/images/bicolore_m.png old mode 100755 new mode 100644 diff --git a/BraceletGenerator/images/chevrons.png b/BraceletGenerator/images/chevrons.png old mode 100755 new mode 100644 diff --git a/BraceletGenerator/images/color.png b/BraceletGenerator/images/color.png old mode 100755 new mode 100644 diff --git a/BraceletGenerator/images/color_m.png b/BraceletGenerator/images/color_m.png old mode 100755 new mode 100644 diff --git a/BraceletGenerator/images/couleurs_en.png b/BraceletGenerator/images/couleurs_en.png old mode 100755 new mode 100644 diff --git a/BraceletGenerator/images/couleurs_fr.png b/BraceletGenerator/images/couleurs_fr.png old mode 100755 new mode 100644 diff --git a/BraceletGenerator/images/efface.png b/BraceletGenerator/images/efface.png old mode 100755 new mode 100644 diff --git a/BraceletGenerator/images/efface_m.png b/BraceletGenerator/images/efface_m.png old mode 100755 new mode 100644 diff --git a/BraceletGenerator/images/exit.png b/BraceletGenerator/images/exit.png old mode 100755 new mode 100644 diff --git a/BraceletGenerator/images/exit_m.png b/BraceletGenerator/images/exit_m.png old mode 100755 new mode 100644 diff --git a/BraceletGenerator/images/export.png b/BraceletGenerator/images/export.png old mode 100755 new mode 100644 diff --git a/BraceletGenerator/images/export_m.png b/BraceletGenerator/images/export_m.png old mode 100755 new mode 100644 diff --git a/BraceletGenerator/images/favicon.ico b/BraceletGenerator/images/favicon.ico old mode 100755 new mode 100644 diff --git a/BraceletGenerator/images/fg.png b/BraceletGenerator/images/fg.png old mode 100755 new mode 100644 diff --git a/BraceletGenerator/images/icon.ico b/BraceletGenerator/images/icon.ico old mode 100755 new mode 100644 diff --git a/BraceletGenerator/images/icon128.png b/BraceletGenerator/images/icon128.png old mode 100755 new mode 100644 diff --git a/BraceletGenerator/images/icon16.png b/BraceletGenerator/images/icon16.png old mode 100755 new mode 100644 diff --git a/BraceletGenerator/images/icon22.png b/BraceletGenerator/images/icon22.png old mode 100755 new mode 100644 diff --git a/BraceletGenerator/images/icon24.png b/BraceletGenerator/images/icon24.png old mode 100755 new mode 100644 diff --git a/BraceletGenerator/images/icon32.png b/BraceletGenerator/images/icon32.png old mode 100755 new mode 100644 diff --git a/BraceletGenerator/images/icon48.png b/BraceletGenerator/images/icon48.png old mode 100755 new mode 100644 diff --git a/BraceletGenerator/images/icon64.png b/BraceletGenerator/images/icon64.png old mode 100755 new mode 100644 diff --git a/BraceletGenerator/images/main_en.png b/BraceletGenerator/images/main_en.png old mode 100755 new mode 100644 diff --git a/BraceletGenerator/images/main_fr.png b/BraceletGenerator/images/main_fr.png old mode 100755 new mode 100644 diff --git a/BraceletGenerator/images/moins.png b/BraceletGenerator/images/moins.png old mode 100755 new mode 100644 diff --git a/BraceletGenerator/images/moins_m.png b/BraceletGenerator/images/moins_m.png old mode 100755 new mode 100644 diff --git a/BraceletGenerator/images/move.png b/BraceletGenerator/images/move.png old mode 100755 new mode 100644 diff --git a/BraceletGenerator/images/move_e.png b/BraceletGenerator/images/move_e.png old mode 100755 new mode 100644 diff --git a/BraceletGenerator/images/move_e_m.png b/BraceletGenerator/images/move_e_m.png old mode 100755 new mode 100644 diff --git a/BraceletGenerator/images/move_m.png b/BraceletGenerator/images/move_m.png old mode 100755 new mode 100644 diff --git a/BraceletGenerator/images/move_n.png b/BraceletGenerator/images/move_n.png old mode 100755 new mode 100644 diff --git a/BraceletGenerator/images/move_n_m.png b/BraceletGenerator/images/move_n_m.png old mode 100755 new mode 100644 diff --git a/BraceletGenerator/images/move_ne.png b/BraceletGenerator/images/move_ne.png old mode 100755 new mode 100644 diff --git a/BraceletGenerator/images/move_ne_m.png b/BraceletGenerator/images/move_ne_m.png old mode 100755 new mode 100644 diff --git a/BraceletGenerator/images/move_nw.png b/BraceletGenerator/images/move_nw.png old mode 100755 new mode 100644 diff --git a/BraceletGenerator/images/move_nw_m.png b/BraceletGenerator/images/move_nw_m.png old mode 100755 new mode 100644 diff --git a/BraceletGenerator/images/move_s.png b/BraceletGenerator/images/move_s.png old mode 100755 new mode 100644 diff --git a/BraceletGenerator/images/move_s_m.png b/BraceletGenerator/images/move_s_m.png old mode 100755 new mode 100644 diff --git a/BraceletGenerator/images/move_se.png b/BraceletGenerator/images/move_se.png old mode 100755 new mode 100644 diff --git a/BraceletGenerator/images/move_se_m.png b/BraceletGenerator/images/move_se_m.png old mode 100755 new mode 100644 diff --git a/BraceletGenerator/images/move_sw.png b/BraceletGenerator/images/move_sw.png old mode 100755 new mode 100644 diff --git a/BraceletGenerator/images/move_sw_m.png b/BraceletGenerator/images/move_sw_m.png old mode 100755 new mode 100644 diff --git a/BraceletGenerator/images/move_w.png b/BraceletGenerator/images/move_w.png old mode 100755 new mode 100644 diff --git a/BraceletGenerator/images/move_w_m.png b/BraceletGenerator/images/move_w_m.png old mode 100755 new mode 100644 diff --git a/BraceletGenerator/images/new.png b/BraceletGenerator/images/new.png old mode 100755 new mode 100644 diff --git a/BraceletGenerator/images/new_m.png b/BraceletGenerator/images/new_m.png old mode 100755 new mode 100644 diff --git a/BraceletGenerator/images/ouvrir.png b/BraceletGenerator/images/ouvrir.png old mode 100755 new mode 100644 diff --git a/BraceletGenerator/images/ouvrir_m.png b/BraceletGenerator/images/ouvrir_m.png old mode 100755 new mode 100644 diff --git a/BraceletGenerator/images/plus.png b/BraceletGenerator/images/plus.png old mode 100755 new mode 100644 diff --git a/BraceletGenerator/images/plus_m.png b/BraceletGenerator/images/plus_m.png old mode 100755 new mode 100644 diff --git a/BraceletGenerator/images/redo.png b/BraceletGenerator/images/redo.png old mode 100755 new mode 100644 diff --git a/BraceletGenerator/images/rotation_dte.png b/BraceletGenerator/images/rotation_dte.png old mode 100755 new mode 100644 diff --git a/BraceletGenerator/images/rotation_dte_m.png b/BraceletGenerator/images/rotation_dte_m.png old mode 100755 new mode 100644 diff --git a/BraceletGenerator/images/rotation_gche.png b/BraceletGenerator/images/rotation_gche.png old mode 100755 new mode 100644 diff --git a/BraceletGenerator/images/rotation_gche_m.png b/BraceletGenerator/images/rotation_gche_m.png old mode 100755 new mode 100644 diff --git a/BraceletGenerator/images/sauver.png b/BraceletGenerator/images/sauver.png old mode 100755 new mode 100644 diff --git a/BraceletGenerator/images/sauver_m.png b/BraceletGenerator/images/sauver_m.png old mode 100755 new mode 100644 diff --git a/BraceletGenerator/images/saveas.png b/BraceletGenerator/images/saveas.png old mode 100755 new mode 100644 diff --git a/BraceletGenerator/images/saveas_m.png b/BraceletGenerator/images/saveas_m.png old mode 100755 new mode 100644 diff --git a/BraceletGenerator/images/shifts.png b/BraceletGenerator/images/shifts.png old mode 100755 new mode 100644 diff --git a/BraceletGenerator/images/sym_horizontal.png b/BraceletGenerator/images/sym_horizontal.png old mode 100755 new mode 100644 diff --git a/BraceletGenerator/images/sym_horizontal_m.png b/BraceletGenerator/images/sym_horizontal_m.png old mode 100755 new mode 100644 diff --git a/BraceletGenerator/images/sym_vertical.png b/BraceletGenerator/images/sym_vertical.png old mode 100755 new mode 100644 diff --git a/BraceletGenerator/images/sym_vertical_m.png b/BraceletGenerator/images/sym_vertical_m.png old mode 100755 new mode 100644 diff --git a/BraceletGenerator/images/undo.png b/BraceletGenerator/images/undo.png old mode 100755 new mode 100644 diff --git a/CHANGELOG.txt b/CHANGELOG.txt old mode 100755 new mode 100644 diff --git a/COPYING.txt b/COPYING.txt old mode 100755 new mode 100644 diff --git a/MANIFEST.in b/MANIFEST.in old mode 100755 new mode 100644 index 0fe5de6..3c4b01c --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,5 +1,7 @@ -include bracelet-generator *.txt *.rst bracelet-generator.desktop *.py bracelet-generator.svg -recursive-include BraceletGenerator/* -recursive-include documentation * +include *.txt *.rst *.py bracelet-generator.* +include BraceletGenerator/locale/fr_FR/LC_MESSAGES/BraceletGenerator.mo +include BraceletGenerator/locale/en_US/LC_MESSAGES/BraceletGenerator.mo recursive-include examples * +recursive-include BraceletGenerator/images * +recursive-include BraceletGenerator/doc * recursive-include po * diff --git a/archlinux/BraceletGenerator-1.4.0/BraceletGenerator/__init__.py b/archlinux/BraceletGenerator-1.4.0/BraceletGenerator/__init__.py deleted file mode 100755 index e69de29..0000000 diff --git a/archlinux/BraceletGenerator-1.4.0/BraceletGenerator/about.py b/archlinux/BraceletGenerator-1.4.0/BraceletGenerator/about.py deleted file mode 100755 index a6697ba..0000000 --- a/archlinux/BraceletGenerator-1.4.0/BraceletGenerator/about.py +++ /dev/null @@ -1,115 +0,0 @@ -#! /usr/bin/python3 -# -*- coding:Utf-8 -*- -""" -Bracelet Generator - An easy way to design friendship bracelet patterns -Copyright 2014-2017 Juliette Monsel - -Bracelet Generator is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 3 of the License, or -(at your option) any later version. - -Bracelet Generator is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see . - - -Window displaying the information about the software -""" - -from tkinter import Text, Toplevel -from tkinter.ttk import Button, Label, Style -from BraceletGenerator.constantes import open_image, BG_COLOR, STYLE, VERSION, IM_ICON48, set_icon, webOpen - - -class About(Toplevel): - """ Toplevel de l'application principale donnant les informations à - propos du logiciel """ - def __init__(self, master, **options): - """ créer le Toplevel 'À propos de Bracelet Generator' """ - Toplevel.__init__(self, master, **options) - - self.title(_("About Bracelet Generator")) - self.transient(master) - self.grab_set() - self.configure(bg=BG_COLOR) - - set_icon(self) - - self.style = Style(self) - self.style.theme_use(STYLE) - self.style.configure('TButton', background=BG_COLOR) - self.style.configure('TLabel', background=BG_COLOR) - self.image = open_image(file=IM_ICON48, master=self) - Label(self, image=self.image).grid(row=0, columnspan=2, pady=10) - - Label(self, - text=_("Bracelet Generator %(version)s") - % ({"version": VERSION})).grid(row=1, columnspan=2) - Label(self, text=_("Friendship bracelet patterns designer")).grid(row=2, columnspan=2, padx=10) - Label(self, text="Copyright (C) Juliette Monsel 2014-2017").grid(row=3, columnspan=2) - Label(self, text="j_4321@protonmail.com").grid(row=4, columnspan=2) - Button(self, text=_("License"), command=self._license).grid(row=5, column=0, pady=20, padx=4) - Button(self, text=_("Close"), command=self.exit).grid(row=5, column=1, pady=20, padx=4) - - self.initial_focus = self - - self.protocol("WM_DELETE_WINDOW", self.exit) - self.resizable(0, 0) - self.initial_focus.focus_set() - self.wait_window(self) - - def exit(self): - """ ferme la fenêtre """ - if self.master: - self.master.focus_set() - self.destroy() - - def _license(self): - """ affiche la licence dans une nouvelle fenêtre """ - def close(): - """ ferme la fenêtre """ - self.focus_set() - fen.destroy() - - fen = Toplevel(self) - fen.title(_("License")) - fen.transient(self) - fen.protocol("WM_DELETE_WINDOW", close) - fen.resizable(0, 0) - fen.grab_set() - fen.configure(bg=BG_COLOR) - set_icon(fen) - style = Style(fen) - style.theme_use(STYLE) - style.configure('TButton', background=BG_COLOR) - style.configure('TLabel', background=BG_COLOR) - - texte = Text(fen, width=50, height=18) - texte.pack() - texte.insert("end", - _("Bracelet Generator is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.\n\n")) - texte.insert("end", - _("Bracelet Generator is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.\n\n")) - texte.insert("end", - _("You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.")) - - i = int(texte.index("5.end").split(".")[1]) - texte.tag_add("link", "5.%i" % (i - 29), "5.%i" % (i - 1)) - texte.tag_configure("link", foreground="#0000ff", underline=1) - texte.tag_bind("link", "