It is a mobile/touch/Fullscreen UItopguy wrote: ↑Tue Oct 15, 2019 12:06 pmSo is it a desktop UI you want to create ? or more of a "mobile/touch/fullscreen" UI ?
What kind of RFID reader is it ? What is the physical interface ? ( What is the logical interface ? )
What features do Python lack ? With the amount of modules and libraries that exist for Python I think it should lack very little.
Yes. A fullscreen/touchscreen one.Heater wrote: ↑Tue Oct 15, 2019 12:18 pmWhen you say "Responsive GUI" do you mean just a normal graphical user interface as you see in a typical Windows/Mac/Linux desktop application?
I ask because "responsive GUI" now a days is used to refer to GUI's displayed in web pages that change size and aspect ratio in response to changes in screen/windows size and/or aspect ratio.
Do you require a GUI on the desktop top of your Pi or a GUI that can be used remotely over the web?
Shnx wrote: ↑Thu Oct 17, 2019 7:57 amIt is a mobile/touch/Fullscreen UI
It is a Contactless RFID USB
I used PyQt5 to create GUI but I'm having a hard time understanding it, can't find a good tutorials on the web too. That's why I'm trying to to make a GUI using HTML with JS/CSS. But if you could suggest a better and easier way, please do so. I'm just an average programmer btw.
Actually it's worse than that. It went a bit like this:Wow 2 months. Your client must have had deep pockets.
Sorry for late reply. I don't know lup and lua yetJohn_Spikowski wrote: ↑Thu Oct 17, 2019 9:29 amIup and Lua might be worth looking at. Qt is too complex in my opinion.
Yes, python is one of my preferred language. Some are C++, C#, VB, Javatopguy wrote: ↑Thu Oct 17, 2019 10:06 amShnx wrote: ↑Thu Oct 17, 2019 7:57 amIt is a mobile/touch/Fullscreen UI
It is a Contactless RFID USB
I used PyQt5 to create GUI but I'm having a hard time understanding it, can't find a good tutorials on the web too. That's why I'm trying to to make a GUI using HTML with JS/CSS. But if you could suggest a better and easier way, please do so. I'm just an average programmer btw.
https://kivy.org/#home Might be easier to understand than Qt. Is Python your preferred language.
Have you already integrated with the RFID reader ?
I don't have time to learn that everythingHeater wrote: ↑Thu Oct 17, 2019 10:45 amShnx,
Yes but do you mean "responsive" in the web developer context. That is to say changing layout with screen size and orientation. Or do you just main responsive like a normal GUI with mouse or touch, a fixed layout?
You have a long road ahead whichever way.
In order to adopt a modern WEB GUI you will need to learn some things, HTML, CSS and JS to start with. Never mind the GUI you want to create, learn them first. Luckily there are more tutorials, blogs, documentation, examples available for HTML/CSS/JS on the net than pretty much any other topic in computing. I'm sure if you did a quick google search for "learn HTML", "JS tutorial" and such combinations of keywords you would find many. There are also a lot of books available even free online.
For HTML there is always: https://www.w3schools.com/html/ full of reference material, examples, etc. They also have a lot of material on CSS and Javascript.
For my web efforts I use the bootstrap library: https://getbootstrap.com/docs/3.4/css/ to take care of all the CSS stuff, I hate dealing with CSS. Bootstrap gives you a lot of nicely styled buttons, check boxes, text boxes, forms, and all kind of other widgets, it also takes care of getting them layed out nicely. I like the cyborg theme: https://bootswatch.com/cyborg/ as in my simple page here: https://otaniemi.conveqs.fi/public/fibo.html
For complex GUI web GUI stuff I use the React javascript library: https://reactjs.org/
But then you have another problem: How to connect everything in the GUI in a browser or other web display to your actual application, for that you will need to find out how to communicate between web page and application. Your application needs to become a web server. They can then communicat using xmlhttprequest's https://www.w3schools.com/xml/xml_http.asp from Javascript or the new "fetch" API: https://developer.mozilla.org/en-US/doc ... /Fetch_API. If you need to push data from your application to the web GUI you will need websockets: https://developer.mozilla.org/en-US/doc ... ockets_API which is made much easier by using the socket.io library: https://socket.io/
Now, your application becomes a web server for that web GUI. For that I use node.js: https://nodejs.org/en/ Which has the advantage that one uses the same language, Javascript, for the web GUI and the application/server. Node.js has all kind of modules available for talking to serial ports, GPIO and whatever you may need.
Now, you may not want to use an actual web browser to display this GUI if your application is only local to the one machine. For that you can use Electron https://electronjs.org/ to wrap up all GUI and application/server code into a single program for local display.
Did I put you off the HTML/CSS/JS GUI idea yet....
For perspective, a few years ago when I created my first modern web application using HTML, JS, websockets, webgl for 3D real-time animation and node.js on the server it took me two months full time effort, including most weekends, to start from knowing nothing about any of that, except a distance memory of HTML, to getting something fit to demo to a customer as a simple, limited prototype. We had a tight deadline.
Is there any tutorials for this? Also, what should install? the Raspbian one or the windows one? I'm planning to code on windows first then move to RPi. Is it possible?topguy wrote: ↑Thu Oct 17, 2019 10:06 amhttps://kivy.org/#home Might be easier to understand than Qt. Is Python your preferred language.
Btw, not yet. My the RFID reader is still shipping.
I'm having a trouble installing kivy. I currently using Python 3.8 64bit version.topguy wrote: ↑Thu Oct 17, 2019 10:06 amhttps://kivy.org/#home Might be easier to understand than Qt. Is Python your preferred language.
Code: Select all
python -m pip install --upgrade pip wheel setuptools virtualenv
Code: Select all
python -m pip install docutils pygments pypiwin32 kivy_deps.sdl2==0.1.22 kivy_deps.glew==0.1.12
python -m pip install kivy_deps.gstreamer==0.1.17
Code: Select all
ERROR: Could not find a version that satisfies the requirement kivy_deps.sdl2==0.1.22 (from versions: none)
ERROR: No matching distribution found for kivy_deps.sdl2==0.1.22
Code: Select all
ERROR: Could not find a version that satisfies the requirement kivy_deps.gstreamer==0.1.17 (from versions: none)
ERROR: No matching distribution found for kivy_deps.gstreamer==0.1.17
That cannot work, not if you are using the regular Raspbian operating system which is a 32 bit OS.... kivy. I currently using Python 3.8 64bit version.
I would like to subscribe to your do not use list.I would not touch C# with a barge pole, but that is just me. I would not use Python either so I can't help much more than the above.