Verified Commit ad1fd3bc authored by HUC Stéphane's avatar HUC Stéphane
Browse files

Manage code HTML with BeautifulSoup (lutim); few corrections...

parent cc8f9d54
......@@ -13,4 +13,3 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
......@@ -27,9 +27,9 @@ Auteurs
**Dépendances** :
- Debian Sid:
- apt install python3 python3-tk python3-pydbus python3-pil python3-pil.imagegtk python3-pip python3-requests python3-notify2
- apt install python3 python3-tk python-beautifulsoup python3-pydbus python3-pil python3-pil.imagegtk python3-pip python3-requests python3-notify2
- OpenBSD :
- pkg_add -v python-3.6.2 python-tkinter-3.6.2 py3-dbus py3-Pillow py3-pip py3-requests
- pkg_add -v python-3.6.2 py3-beautifulsoup4 python-tkinter-3.6.2 py3-dbus py3-Pillow py3-pip py3-requests
- python3.6 -m pip install --upgrade configparser notify2
----
......
SHA512 (./COPYRIGHT) = e4143a58afdb99e21967dfdf810e3500b7995c4c6f8f32612578f2d6695a733fe67c6d2047b0c60386b01fd3b326ab47b217c9b36c2e720321bc0c7004b022a0
SHA512 (./LICENSE) = 0c94fe9500ad3158c7857871527f03a9c981ca75a7e184c94dd0e377f9732415329eaa3ec09c65dfaaeb37f2bd9abf1e6551f63c2fa1acfb65d7eebca7876917
SHA512 (./README.md) = 22b43f9b214e8e26b3aed46bad1dfa7d3475143af4db442ba5142d81de3de0ab0085df74ad0b479f5b7a11827b03d727e49c358cd2eb95dd4bb2e06434c6caa7
SHA512 (./LICENSE) = 169603b44f9e20ce49cec97ac4739e78ad8d7f4a579cf11a17e98d8f917795795ebaba948a50764ac582bea1b53dcb2d3b985959ec382911e0d1033c7e49301f
SHA512 (./README.md) = 59887ed260f50991f5ebe68804ae6544fde2a2e2b242cb0b446d417e8a8a3c25d176b009e3b71e0e11fd3f15560e6033f448c386b9b58b7e76a15651827a3a9c
SHA512 (./TODO) = f87785b9dc8894f8ee30f0b05aba4af03fa5d3a8505e54074bd3423be19613f72c13f35fbb615d54fa8ffdbc8ef50c92fb8b6b41e43699ba9172325ee9320e2f
SHA512 (./VERSION) = ee00bc9a2f4df56a8926d39b04b42102ef8aebe01e1dabce7180d428c03582f858705a05930b3eb69c2a7e7043018bcba45eded28b6c26ed40332dca1f1af9f2
SHA512 (./conf/Help) = 667c64c1293de7572344fdc641cc216f1aa062abef489abeaa17a6c3c2904a0c502d0f74282317e74c3fda06e7e8d6aa8f663711dd6c3423d3599aa94cf882b7
SHA512 (./conf/Help.html) = 34cf8875770a67919e4f73959798f2f5c9ef56227a9980c56d9f69b7fb4b41263058de7596012a138b6f7d2cac67d4b9f11c2aadef214b4b5f1de5df8a581098
SHA512 (./conf/YUP.story.html) = 3911d910078b5bf748d769f64d797539ee1898005c51a0a9a832dcd30f61bdccf0fada5531c50895f3991241babadaf9f1f807323d6bec8d8d1cd0c39435b387
SHA512 (./conf/YUP.story.old.html) = 8956064162a49690c0c073ad230b5f6dfd93cea6982f5813b36cb4efc9e8a4d7024166fe75e86cc484ecabbccadff77f3c4ef5787be7c8a273fadc651da26f58
SHA512 (./conf/YUP.html) = 3518f03e402d2250a937e9cf79cf1980d42112e165a5b21bb8318f78deba24c71715fd82f93c895bb12ea4c2b125f5e45a58aaa08d268bff2db881a99c5491c5
SHA512 (./conf/YUP.story.html) = 88b7a9389c54728c5cacd75ecbc788dbf56a823f4d270eae923a528ca69f71e775442b1677c25737e6c11efbfa97dca1204b4ccf157a6efed2d343d229bab341
SHA512 (./conf/YUP (copie 1).html) = 6213d242f0dca37f341e31c3e3b50c4d283f2e8b06d9d70719b1ec4b5e33c4a5e40a66e51f79c1b3f8a64c06aae82fcb54bf252946f0f90d7543fbec23860142
SHA512 (./conf/bootstrap.min.css) = 93bf1ed5f6d8b34f53413a86efd4a925d578c97abc757ea871f3f46f340745e4126c48219d2e8040713605b64a9ecf7ad986aa8102f5ea5ecf9228801d962f5d
SHA512 (./conf/bootstrap.min.js) = 00d9069b9bd29ad0daa0503f341d67549cce28e888e1affd1a2a45b64a4c1bc460d81cfc4751857f991f2f4fb3d2572fd97fca651ba0c2b0255530209b182f22
SHA512 (./conf/log.conf) = 2a3e1ade04731c13248bf29147f2c206a77a395c899698a6fb6f8e04bd5e9abac25bb2e5135896244012643e38a2f1a9d5f1da4790f60f84793df8bbdb8bb52f
SHA512 (./conf/yup.py.ini) = 72bda5c94b31be8c6d3ed3f53968f59f2f1104f360a0e186bd04e2caea927169bf515dadfd53cc2195fffcfa7b11611d94fc81143cdbeb0f154cfc05ff19e940
SHA512 (./conf/yup.py.ini) = e4aa81be10eb4719755d8a3cbe99f45ff38202443263199f6ff75756a2d9d61fc59abf166cf44255094fd88d1a0e26bded765d795d187ef767a3e4048ceb5494
SHA512 (./conf/YUP.story (copie 1).html) = 3911d910078b5bf748d769f64d797539ee1898005c51a0a9a832dcd30f61bdccf0fada5531c50895f3991241babadaf9f1f807323d6bec8d8d1cd0c39435b387
SHA512 (./credits) = 874c9dcb609c394cd26ccb9633d0367320a441cec1a06f2c463d9ecc13fac263a2b8efd8bef49cde928b8131cdd551ef94b19be99df3833e0f6f1032ce787312
SHA512 (./img/Logo.ico) = c00243d24f520f421c80bc4513d62166f118c35cdb54d2ba2af6bc265ca6e1b01463d33cf5c0669cdfa3b840a8aecb01e39e126027c40a0197a6557af11a61e1
SHA512 (./img/Logo.png) = 31fe931b333c39c93b90cc50802055c28efce8ebdabca34b3e9be6f4d42fa69dc4bca4b9fc40b63c24211c3cc75167d9ac0faa51c19c94a20983874d31228850
......@@ -18,17 +18,18 @@ SHA512 (./img/Logo.xbm) = b1e5d89e934e1a8c7c6807e084d77b7f8531589f04cc6b1ea1560d
SHA512 (./modules/__init__.py) = cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e
SHA512 (./modules/__init__.py.svg) = c5cf21565f9dbe8bfd5bcfabc06b01ff8be882666315a66fabeedf3b76944386e76c63728a1c250214bb1b740da3b768e90e5926b2462c5117cdeba37b0541f4
SHA512 (./modules/about.py) = 0542316c72a22d2d40b5eb039cba4ed56e94b73ecd3e2c1a7f20cd55d02eae1ae36aa2fd29621dfd335dc6f67a2a711710a00eafe16fa9bdf8521ce8e3e6406f
SHA512 (./modules/config.py) = ec7264df6c2956ab8ff687997bfb544361dd40006b19a21c49b056d1907509fdda265b5cc07c380123e3106817c7f336110e4b13b665d84f0e756f469c34524c
SHA512 (./modules/gui.py) = 9586bb8c866c5c69c1f079efc75719eae13eb133017650050817959f6e3cb773131066993532902a47a66a6b4eea591c99b5e3e0de99a61406a2b80cf0c83395
SHA512 (./modules/config.py) = 33e6eb1f4b6189dc7b5d6aaccc77b0ada6ff19879872b658bf4863ffa5b582395d99933d172ef05366ba8d780b7bde3de94ee9868d445f312c41ae4554f78115
SHA512 (./modules/gui.py) = d04e9b24e54756cab7245f8f3245bb5d933775297678c6d5216487ef0bc5d9f6cfdd374cdbd2a588aa84a32321590be7c81ce0dc12c011f5e5b3a9759cbc0e63
SHA512 (./modules/message.py) = 6317f72ac6c20c842f17663f0e896ad36f517d852227d0523d84a2a8d90c08e150b47a5ddfc3155a14821818d081f4d9ed7a5a533d828337dd300f3df7ccd79d
SHA512 (./modules/notification.py) = 08a3036a9f849b45e40e7cb4ae542ff4ac1e6b44aeb0fdceaced556b7bd218ecc2337f1c670b28f066390e689f6938edfa39697d4237e532033b7ea80fbca374
SHA512 (./modules/services.py) = ca324b17faa6ca678bb1a50dd2b3f5e266efc8e7b9011b712feb1f35f633c10f704abc9581a10b713ed64119dfa4ccf95825d393bcff78b4ebef7bdb02eb3108
SHA512 (./modules/tools.py) = 499deab09e20cbcb2e6679d94e70eb114700858362e6aa259e7532ab7b27151429fe1ce216c3a5cc15f2a15e2f3ba15e324da7410ee5cbdfc205715f6f61840f
SHA512 (./modules/services.py) = 029b63d9b41c9d62e5b639fe6ff5e1bbaa665e4942a615c2c1a9f46e8863c1bbd78560b2d3ebf1b2c0762f4b19536bacf14698d8845da960f604fa1f6181c744
SHA512 (./modules/tools.py) = aa06725d7e6319fcfa35a5bc896df719d82130005ddd019f4bffb11a1a2eb65e3dafed1822433b0312d3e7c1404b9c303e7f8c15583e6bbb927608d1454cd646
SHA512 (./modules/tooltip.py) = 5a7594694149b4760acf4a97470283467d76e862a6f2c2b1f748b74d09fe3efe22a3e5a06519a3499f71dfd391c7c425e1e2067ac9c61a43d5aafb20fe0b5a51
SHA512 (./modules/worker.py) = b1622a57bc4373fbd1f8d71adeffc29d0dc336107a34baa7f3960da9cb72bfd0ca450a678c6998df5cd3151e4ea583deefbfcafd35d5ee638b09cdc053b61f41
SHA512 (./modules/worker.py) = 0b71610d11efa3dd4a8420dfdf02dbca9606030c8b8c043d85e140936e57f2557240fd5c40f00b425632e3a3eca999c2248ed6ec5455e20f925782592cee7a5e
SHA512 (./modules/html.py) = 7f2ad328c4982ec3dc7ad6c9efc3070b023a752eb230da2c7a28d865fc59b5db804cb262289a747edb43987cc53a0cc036d53feb54216d356a9e5c0fa05dce32
SHA512 (./t2.py) = 347a70754579de1a916432394eabc768c2c33e15f48605c3cb20cb560ee7f713d04bf83b9818bd42385075b9ae12b2f65bc63f3ea8be03f2910ac75cf6c1621d
SHA512 (./test.py) = 5d0cb5271b6fc9c0544a9aaeb41e96cca44caf36cd1376e6b695709439530e5b5b64dab25326701adb51751b31bb1f3ee595dfda4487c3508c7e2d95d7cc555a
SHA512 (./test.ui) = a53b8038814bba03782ca4cf5005f1431e8e9a69912bc6e39bd654a7499c3850b9ecf829b06b475bf144b42340e0617fb3eed15ac2140dbdfaa2ef948583a9bc
SHA512 (./ui.tcl) = 213dd04387aebb62462e197dc0ae5603ebff51f86e1567b94aeaf6f42cd173ed2e93ffea5420eb337200a142dc0670e9aa814d2a4777aa7e0c0acccd1395c6a6
SHA512 (./yup.tk.py) = ebca335fe037fa53465bcc243e890130581551285048a148cd1f60dd013e278d1cbe907fb5dd63ea0789394b8346764f01fadf64b1eab2df662cbd94cfdc39e7
SHA512 (./yup.tk.py) = 0aa40c11821bb069556ba2dad8ff920ce2c98161c8db2faa9b322a8f2a64625f98d86680ee907bf9ceff55178071783b2e329b61cc1a524808b5c9d992070425
SHA512 (./t3.py) = 44298d34995f95da821523e003c968a3cf0486a4a22bbed092cd47b1bf760d8ba74e91683ca44c8bbf36fac3d00ece0012d184ea9d9bc396a576db29e2a6b7a1
${ROUGE}Syntaxe${NORMAL} : pixup [option] fichier
${ROUGE}Options${NORMAL} :
-s ou --service
c → casimages.com
d → debian-fr.org
f → framapic.org
h → hostingpics.net
l → lut.im
t → toile-libre.org
-j ou --journal afficher le journal (${logname})
-c ou --config afficher le fichier de config
-h ou --help afficher l'aide
Si l'option -s n'est pas fournie, le script utilisera le service par défaut :
- ${service_defaut} -
Celui-ci est modifiable dans le fichier de config.
${ROUGE}Fichier${NORMAL} :
Le fichier à uploader
${ROUGE}Exemples${NORMAL} :
pixup /home/john/rambo/tutu.png
→ upload du fichier /home/john/rambo/tutu.png vers le service par défaut
pixup -s c toto.jpg
→ upload du fichier ./toto.jpg vers casimages.com
<!doctype html>
<html lang="{lang}">
<head>
<title>PIX^ :: PixUP :: Fichier d'aide</title>
<meta charset="utf-8">
<style type="text/css"> a img { border:0; } </style>
</head>
<body>
<p><strong>Syntaxe</strong> : pixup [option] fichier</p>
<p><strong>Options</strong> :</p>
<ul>
<li><strong>-s</strong> ou <strong>--service</strong> : envoyer à un des hébergeurs ci-dessous.
<ul>
<li><strong>c</strong> → casimages.com</li>
<li><strong>d</strong> → debian-fr.org</li>
<li><strong>f</strong> → framapic.org</li>
<li><strong>h</strong> → hostingpics.net</li>
<li><strong>l</strong> → lut.im</li>
<li><strong>t</strong> → toile-libre.org</li>
</ul>
<p>Si l'option -s n'est pas fournie, le script utilisera le service par défaut :<br/>
- ${service_defaut} -<br/>
Celui-ci est modifiable dans le fichier de config.</p>
</li>
<li><strong>-j</strong> ou <strong>--journal</strong> : afficher le journal (${logname})</li>
<li><strong>-c</strong> ou <strong>--config</strong> : afficher le fichier de config</li>
<li><strong>-h</strong> ou <strong>--help</strong> : afficher l'aide</li>
</ul>
<p><strong>Fichier</strong> : Le fichier à uploader</p>
<p><strong>Exemples</strong> :</p>
<ul>
<li>
→ upload du fichier /home/john/rambo/tutu.png vers le service par défaut :<br/>
<code>pixup /home/john/rambo/tutu.png</code>
</li>
<li>
→ upload du fichier ./toto.jpg vers casimages.com : <br/>
<code>pixup -s c toto.jpg</code>
</li>
</ul>
</body>
</html>
<!DOCTYPE html>
<html lang="{LANG}">
<head>
<title>{TITLE}</title>
<meta charset="utf-8">
<style>
body { background-color: #204A87; }
h1 { font-size: 1.5em; font-weight: bold; margin: 3em; text-align: center; }
h2 { font-size: 1.4em; font-weight: bold; margin: 2.5em; }
h3 { font-size: 1.3em; font-weight: bold; margin: 2em;}
/* Set height of the grid so .sidenav can be 100% (adjust if needed) */
.row.content {height: auto;}
/* Set gray background color and 100% height */
.sidenav {
background-color: #204A87;
height: 100%;
}
.sidenav h1, h2 { color: #eee; }
.sidenav h2 { font-weight: normal; }
.sidenav ul { margin-top: 10px; }
.sidenav a { color: #ccc; }
.brd-l {
border-left: 1px dotted #333;
background-color: #eee;
}
article {
background-color: #EFEFEF;
border-bottom: 1px solid #333;
}
article h2 { color: #000; }
article dl { margin: 1em; }
article dt { margin: 0.9em; text-align: center;}
article dd { margin: 0.7em; padding: 0.7em; }
article dd.layout { background-color: #F5F5F5; }
article input { background-color: #F5F5F5; width: 100%;}
header {
border-bottom: 1px dotted #333;
padding: 10px;
}
/* Set black background color, white text and some padding */
footer {
background-color: #555;
color: #ccc;
padding: 15px;
}
footer a {
color: #fff;
}
footer a:hover {
color: #ccc;
}
/* On small screens, set height to 'auto' for sidenav and grid */
@media screen and (max-width: 767px) {
.sidenav {
height: auto;
padding: 15px;
}
.row.content {height: auto;}
}
</style>
</head>
<body>
<section>
<!-- {ARTICLE} -->
</section>
<footer class="container-fluid">
<p> - {NAME} :: <a href="{URL_WEB}">{DESCR}</a> ({URL_HISTORIC}) - {COPYRIGHT} - {LICENCE}</p>
</footer>
</body>
</html>
<!DOCTYPE html>
<html lang="">
<head>
<title></title>
<meta charset="utf-8">
<style>
body { background-color: #204A87; }
h1 { font-size: 1.5em; font-weight: bold; margin: 3em; text-align: center; }
h2 { font-size: 1.4em; font-weight: bold; margin: 2.5em; }
h3 { font-size: 1.3em; font-weight: bold; margin: 2em;}
/* Set height of the grid so .sidenav can be 100% (adjust if needed) */
.row.content {height: auto;}
/* Set gray background color and 100% height */
.sidenav {
background-color: #204A87;
height: 100%;
}
.sidenav h1, h2 { color: #eee; }
.sidenav h2 { font-weight: normal; }
.sidenav ul { margin-top: 10px; }
.sidenav a { color: #ccc; }
.brd-l {
border-left: 1px dotted #333;
background-color: #eee;
}
article {
background-color: #EFEFEF;
border-bottom: 1px solid #333;
}
article h2 { color: #000; }
article dl { margin: 1em; }
article dt { margin: 0.9em; text-align: center;}
article dd { margin: 0.7em; padding: 0.7em; }
article dd.layout { background-color: #F5F5F5; }
article input { background-color: #F5F5F5; width: 100%;}
header {
border-bottom: 1px dotted #333;
padding: 10px;
}
/* Set black background color, white text and some padding */
footer {
background-color: #555;
color: #ccc;
padding: 15px;
}
footer a {
color: #fff;
}
footer a:hover {
color: #ccc;
}
/* On small screens, set height to 'auto' for sidenav and grid */
@media screen and (max-width: 767px) {
.sidenav {
height: auto;
padding: 15px;
}
.row.content {height: auto;}
}
</style>
</head>
<body>
<section>
<!-- {ARTICLE} -->
</section>
<footer class="container-fluid">
<p> - <span id="name"></span> :: <a id="url_web" href=""></a> (<span id="url_historic"></span>) - <span id="date_copyright"></span> - <span id="license"></span></p>
</footer>
</body>
</html>
<!DOCTYPE html>
<html lang="{LANG}">
<head>
<title>{TITLE}</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="bootstrap.min.css">
<script src="bootstrap.min.js"></script>
<style>
body { background-color: #204A87; }
h1 { font-size: 1.5em; font-weight: bold; margin: 3em; text-align: center; }
h2 { font-size: 1.4em; font-weight: bold; margin: 2.5em; }
h3 { font-size: 1.3em; font-weight: bold; margin: 2em;}
/* Set height of the grid so .sidenav can be 100% (adjust if needed) */
.row.content {height: auto;}
/* Set gray background color and 100% height */
.sidenav {
background-color: #204A87;
height: 100%;
}
.sidenav h1, h2 { color: #eee; }
.sidenav h2 { font-weight: normal; }
.sidenav ul { margin-top: 10px; }
.sidenav a { color: #ccc; }
.brd-l {
border-left: 1px dotted #333;
background-color: #eee;
}
article {
background-color: #EFEFEF;
border-bottom: 1px solid #333;
}
article h2 { color: #000; }
article dl { margin: 1em; }
article dt { margin: 0.9em; text-align: center;}
article dd { margin: 0.7em; padding: 0.7em; }
article dd.layout { background-color: #F5F5F5; }
article input { background-color: #F5F5F5; width: 100%;}
header {
border-bottom: 1px dotted #333;
padding: 10px;
}
/* Set black background color, white text and some padding */
footer {
background-color: #555;
color: #ccc;
padding: 15px;
}
footer a {
color: #fff;
}
footer a:hover {
color: #ccc;
}
/* On small screens, set height to 'auto' for sidenav and grid */
@media screen and (max-width: 767px) {
.sidenav {
height: auto;
padding: 15px;
}
.row.content {height: auto;}
}
</style>
</head>
<body>
<div class="container-fluid">
<div class="row content">
<div class="col-sm-3 sidenav">
<h1>{NAME} :: {DESCR}</h1>
<h2>{ABOUT}</h2>
<hr>
<ul id="nav">
<!-- {LINK} -->
</ul>
</div>
<div class="col-sm-9 brd-l">
<section>
<!-- {ARTICLE} -->
</section>
</div>
</div>
</div>
<footer class="container-fluid">
<p> - {NAME} :: <a href="{URL_WEB}">{DESCR}</a> - {COPYRIGHT} - {LICENCE}</p>
</footer>
</body>
</html>
<!DOCTYPE html>
<html lang="{LANG}">
<html lang="">
<head>
<title>{TITLE}</title>
<title></title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="bootstrap.min.css">
......@@ -80,11 +80,10 @@
<div class="row content">
<div class="col-sm-3 sidenav">
<h1>{NAME} :: {DESCR}</h1>
<h2>{ABOUT}</h2>
<h1 id="name_descr"></h1>
<h2 id="about"></h2>
<hr>
<ul id="nav">
<!-- {LINK} -->
</ul>
</div>
......@@ -92,7 +91,6 @@
<div class="col-sm-9 brd-l">
<section>
<!-- {ARTICLE} -->
</section>
</div>
......@@ -101,7 +99,7 @@
</div>
<footer class="container-fluid">
<p> - {NAME} :: <a href="{URL_WEB}">{DESCR}</a> - {COPYRIGHT} - {LICENCE}</p>
<p> - <span id="name"></span> :: <a id="url_web" href=""></a> - <span id="date_copyright"></span> - <span id="license"></span></p>
</footer>
</body>
......
<!doctype html>
<html lang="{lang}">
<head>
<title>{title}</title>
<meta charset="utf-8">
<style type="text/css"> a img { border:0; } </style>
</head>
<body>
<section>
</section>
</body>
</html>
......@@ -14,9 +14,6 @@ journal = True
logname = $HOME/.config/$NAME/$NAME.story.html
# taille de l'image au format mini :
mini_width = 200
# service par défaut :
## "debianfr" "framapic" "lutim" "toilelibre"
default = toilelibre
[lutim]
# Format de réception des données ; utile pour lutim
......
......@@ -18,6 +18,7 @@ from configparser import SafeConfigParser
import os
import pprint
import shutil
import sys
# Import Personals Modules
......@@ -73,8 +74,6 @@ class Config(object):
def build_personals_files(self):
'''Build personals necessaries files'''
import shutil
# mkdir personal config Yup if not exists
if not os.path.isdir(self.files['src']['personal']):
os.makedirs(self.files['src']['personal'])
......@@ -92,7 +91,7 @@ class Config(object):
shutil.copy(
self.files['src']['historic'], self.files['src']['personal'])
self.tool.sed_html(self.config['info']['Services']['logname'])
self.tool.sed_tags(self.config['info']['Services']['logname'])
# copy boostrap files
for value in self.files['src']['bootstrap'].values():
......
......@@ -68,8 +68,11 @@ class Gui(tk.Tk):
setattr(self, i, init[i])
self.wrk_main = work(self)
self.wrk_main.start()
self.wrk_story = work(self)
self.cursor = ''
self.icon = self.files['images']['icon']
self.logo = self.files['images']['logo']
......@@ -79,7 +82,7 @@ class Gui(tk.Tk):
self.ltm_first_view = self.actions['lutim']['first_view']
self.ltm_keep_exif = self.actions['lutim']['keep_exif']
self.ltm_retention = self.actions['lutim']['retention']
self.ltm_retention = self.actions['lutim']['days']['default']
self.pix_descr = self.actions['toilelibre']['description']
self.pix_private = self.actions['toilelibre']['private']
......@@ -167,6 +170,9 @@ class Gui(tk.Tk):
self.choice_lutim_days.set(days[key])
del(key, days)
self.cbb_lutim_days.bind('<<ComboboxSelected>>',
self.on_cbb_days_clicked)
elif service == 'jirafeau' or service == 'debianfacile':
self.choice_jirafeau_days = tk.StringVar()
......@@ -182,8 +188,11 @@ class Gui(tk.Tk):
key = self.tool.array_search(self.actions[service]['days']['index'],
self.actions[service]['days']['default'])
self.cbb_jrf_days.set(days[key])
self.choice_jirafeau_days.set(days[key])
del(key, days)
self.cbb_jrf_days.bind('<<ComboboxSelected>>',
self.on_cbb_days_clicked)
def gui(self):
'''Displaying UI'''
......@@ -246,9 +255,10 @@ class Gui(tk.Tk):
def mng_cursor(self):
''' Manage cursor '''
self.cursor = self.gui['cursor']
self.gui['cursor'] = 'watch'
self.gui.update()
#self.cursor = tk['cursor']
#self.gui['cursor'] = 'watch'
self.frm_main.config(cursor='watch')
#self.gui.update()
def mng_frame_connection(self):
'''Displaying widgets into Frame Connexion'''
......@@ -312,8 +322,6 @@ class Gui(tk.Tk):
self.fill_cbb(self.frm_jrf, 'jirafeau')
self.cbb_jrf_days.bind('<<ComboboxSelected>>',
self.on_cbb_days_clicked)
self.cbb_jrf_days.configure(state='disabled')
self.bool_jrf_one_time = tk.IntVar()
......@@ -346,11 +354,6 @@ class Gui(tk.Tk):
underline=0, state="disabled")
self.nb.hide(self.frm_lutim)
#self.lbl_frm_lutim = ttk.LabelFrame(self.frm_lutim,
#text=self.texts['label']['frm_lutim'])
#self.lbl_frm_lutim.grid(row=0, column=0)
#self.lbl_frm_lutim.configure(state='disabled')
self.lbl_lutim_days = ttk.Label(self.frm_lutim,
text=self.texts['label']['lutim_delete_days'])
self.lbl_lutim_days.grid(row=0, column=0, sticky=tk.W)
......@@ -358,8 +361,6 @@ class Gui(tk.Tk):
self.fill_cbb(self.frm_lutim, 'lutim')
self.cbb_lutim_days.bind('<<ComboboxSelected>>',
self.on_cbb_days_clicked)
self.cbb_lutim_days.configure(state='disabled')
self.bool_ltm_first_view = tk.IntVar()
......@@ -449,7 +450,7 @@ class Gui(tk.Tk):
self.btn_send.grid(row=2, column=0, columnspan=2)
self.btn_send.configure(state='disabled')
tip(self.btn_send, self.texts['tooltip']['cant_send'])
#tip(self.btn_send, self.texts['tooltip']['cant_send'])
def mng_frame_service(self):
'''Displaying widgets to Frame Service'''
......@@ -486,7 +487,7 @@ class Gui(tk.Tk):
self.btn_browse.grid(row=2, column=1)
self.btn_browse.configure(state='disabled')
tip(self.cbb_service, self.texts['tooltip']['services'])
#tip(self.cbb_service, self.texts['tooltip']['services'])
def mng_logo(self):