<html><head></head><body><div class="ydpe3883d13yahoo-style-wrap" style="font-family: times new roman, new york, times, serif; font-size: 16px;"><div id="ydpe3883d13yiv7930826555"><div><div class="ydpe3883d13yiv7930826555ydpc18ab74ayahoo-style-wrap" style="font-family:times new roman, new york, times, serif;font-size:16px;"><div></div>
<div dir="ltr">Hi Alan,</div><div dir="ltr"><br clear="none"></div><div dir="ltr" data-setdir="false">I don't know Python so won't be much help. Python became popular around the "I don't feel like learning another programming language" point in my lengthy career so I never got round to picking it up. As you noted in a previous message, the PI has limited IO pins so I'm curious why you have selected it as your primary processor. I use it only for the capacitive touch screen graphical display specifically designed for the PI. All my sensor data comes from an Arduino type processor, the Teensy to be specific which I pass to the PI via serial communication.</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">I used Processing for graphics which is the same language that the Arduino IDE is built around. Easy to learn, user forums, and many references. However, python has the same. I used a combination of code and icons for the graphics. On the main screen the depth, vrate, warning panel, compass, yaw, and pitch are all produced by code. The buttons at the top, side, and bottom are all JPG icons which I created in an old graphics editor (Paint Shop Pro) that isn't even available anymore. Have you considered GIMP for your graphics editing? It's free and powerful, runs on windows and unix, and has a large following.</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">My approach was to use icons for things that were relatively static, like a button, and software for animation and dynamic information that changed frequently and quickly, like depth and compass. Producing animation with icons requires LOTS of images and I wasn't interested in all the possible combinations I would need to produce the compass/pitch/roll graphic. It was easier to create via software code.</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">I'm sure Python has the same capabilities, to customize any widgets and/or allow you to created custom graphics including displaying prebuilt images or icons. Everything is going to have a learning curve and I had one with Processing, but it was pretty straight forward.</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">Jon</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false"><br></div><div><br clear="none"></div>
</div><div class="ydpe3883d13yiv7930826555ydpe3ed0e3fyahoo_quoted" id="ydpe3883d13yiv7930826555ydpe3ed0e3fyahoo_quoted_7320631451">
<div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
</div>
</div></div></div></div><div class="ydpe8734a45yiv7930826555yqt6499809206" id="ydpe8734a45yiv7930826555yqt68208"><div>
On Thursday, August 29, 2019, 06:34:33 AM EDT, Alan via Personal_Submersibles <personal_submersibles@psubs.org> wrote:
</div>
<div><br clear="none"></div>
<div><br clear="none"></div>
<div><div id="ydpe8734a45yiv7930826555ydpe3ed0e3fyiv0552481527"><div>Jon, or anyone else with an opinion.<div></div><div>Have started learning Python to program a Raspberry Pi for controlling functions </div><div>& displaying information on a GUI (touch screen).</div><div>Jon, in general I am wanting to do similar to what you have done with your </div><div>"submarine control manager" but different in a lot of aspects.</div><div>There are a few options I have been looking at for creating the GUI.</div><div>The first is Tkinter, but I am hearing that it's a bit old school. One advantage though</div><div>is that there is a lot of resources available in the way of written code for various</div><div>applications, instruction & help.</div><div>The second is PysimpleGUI . <a shape="rect" href="https://pysimplegui.readthedocs.io/en/latest/tutorial/#what-is-a-gui" rel="nofollow" target="_blank">https://pysimplegui.readthedocs.io/en/latest/tutorial/#what-is-a-gui</a></div><div>but this may be a bit simple & limited.</div><div>The third is Pyqt5 with qt designer. The designer lets you drag & drop widgets</div><div>& relieves you of a lot of code writing. This combination seems the best option</div><div>so far.</div><div>I am not sure to what degree I can customise the widgets in the various programs;</div><div>for instance, can I create a compass or image of a submarine. I am keen to have</div><div>some contemporary looking graphics but I may be stuck with what they provide.</div><div>Have tried to find out if the program's support any sort of huge library of pre made </div><div>open source widgets that I can use, but have only heard reference to a small basic</div><div>list of widgets.</div><div>I did learn photoshop from an 800 page book, so not scared of a learning curve</div><div>however I am only learning for this project at this stage.</div><div>Any thoughts appreciated.</div><div>Alan</div><div><br clear="none"></div></div></div>_______________________________________________<br clear="none">Personal_Submersibles mailing list<br clear="none"><a shape="rect" href="mailto:Personal_Submersibles@psubs.org" rel="nofollow" target="_blank">Personal_Submersibles@psubs.org</a><br clear="none"><a shape="rect" href="http://www.psubs.org/mailman/listinfo.cgi/personal_submersibles" rel="nofollow" target="_blank">http://www.psubs.org/mailman/listinfo.cgi/personal_submersibles</a><br clear="none"></div></div></body></html>