About creating desktop apps on Windows 10

Asked 2 years ago, Updated 2 years ago, 62 views

I created a business application using Tkinter in Python, but it starts too late, so I'm thinking of rewriting it in another language.But I'm having a hard time because I don't know which one to choose out of all the options. I've only touched Python, VBA, HTML and CSS.What language is easy for beginners to create a GUI and fast for Windows desktop apps?

Note:
Thank you for your comment.We have created an application to automate some of the operations on drawing software, such as moving objects and obtaining and processing data.The size is 62MB and it takes about 25 seconds to boot.I want to get it within 3 seconds.I cannot guarantee that Python or Tkinter is responsible for the slow boot.What's the best way?

python windows-10

2022-09-30 16:43

1 Answers

I feel like my goal has changed since I received your comment.

C# and VisualStudio are the best options for developing Windows desktop apps as originally asked.

You can choose between WinForms and WPF.I think WinForms is more familiar to people who have been doing VB6 for a long time, but WPF might be better if HTML/CSS is available.

VisualBasic is a possible analog from VBA, but since there are few third-party libraries registered with NuGet, it may increase development man-hours.

However, this is the same with C#, and depending on the number/type/functionality of Python libraries currently in use, you may need to make your own because there is no equivalent.
Then there will be no point in developing a new one.

Therefore, it is recommended that you look into what causes the current Python program to be slow, including the advice provided in the comments.
Measuring them is a technique called profiling.

Python itself has documentation as well, too.
Python profiler

The tools and usage articles that appear after searching are as follows.
Python:check profile/cProfile module for bottlenecks
Python Profiling Basics
Profiling Python Code
Profiling in Python -

for faster code

This article focuses on acceleration.
What do you care about with python speed? Python Tips for Acceleration
Seven ways to make your Python explode
Continued ·7 ways to make your Python explode
What I did when I wanted Python to speed up
Throw slow processing to another thread in tkinter to prevent the screen from sticking
I want to speed up Python

Considering the level of information presented in the question, I get the impression that many features are packed into a single program and therefore slow to boot.

In that case, Microsoft may have said that the minimum GUI can be displayed first and the necessary parts for each purpose, either loading at the time of actual processing or loading little by little in the background after displaying the minimum GUI.

By the way, you don't have PyInstaller as one file or include the dll of Windows itself, do you?

There was an old article that seemed to be doing something similar.
pywinauto's one-file exe
Make py2exe and cx_freeze one file exe in NSIS
pywinauto practice~I tried saving and using Gist as a notepad~


2022-09-30 16:43

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.