Graphical user interface compiling method, system and equipment and storage medium
A graphical user interface and text technology, used in code compilation, software engineering design, program code conversion, etc., can solve the problems of cumbersome code writing, lack of GUI code implementation, and inability to manage graphical user interfaces in a unified manner. The effect of simplifying the writing method and facilitating unified management
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0044] Embodiment 1 of the present invention proposes a method for writing a graphical user interface. Use specific parsers in different languages to convert them into specific code implementation methods in this language, and provide a consistent representation for the organizational structure of different components, so as to achieve the purpose of cross-language GUI interface programming.
[0045] The present invention takes the realization of the GUI interface of Python and Java language as an example as the basic implementation scheme. Currently, Python implements GUI interfaces generally using Pyqt5 as the development framework, and Java implements GUIs generally uses JavaFX as the development framework. Based on the above situation, the present invention will convert the JSON text into codes that meet the Pyqt5 and JavaFX standards during actual conversion.
[0046] Among them, JSON, the full name (JavaScript Object Notation) means JavaScript Object Notation, which i...
Embodiment 2
[0083] A method for writing a graphical user interface proposed based on Embodiment 1 of the present invention. Embodiment 2 of the present invention also proposes a system for writing a graphical user interface, such as Figure 4 A schematic diagram of a system written for a graphical user interface in Embodiment 2 of the present invention, the system also includes: a preprocessing module, an analysis module and a conversion module;
[0084] The preprocessing module is used to use JSON text as the writing specification of the graphical user interface;
[0085] The parsing module is used to read the JSON text. On the premise that the JSON text complies with the regulations, first create a root component, and then create component objects sequentially from outside to inside to parse the JSON text into an intermediate data structure;
[0086] The conversion module is used to convert the object type in the JSON text into the corresponding component type in the corresponding lang...
Embodiment 3
[0096] The invention also proposes a device comprising:
[0097] memory for storing computer programs;
[0098] When the processor is used to execute the computer program, the method steps are as follows:
[0099] like figure 1 A flow chart of a method written for a graphical user interface in Embodiment 1 of the present invention; as figure 2 A schematic diagram of parsing and constructing in a method written for a graphical user interface in Embodiment 1 of the present invention;
[0100] In step S101, JSON text is used as the writing specification of the graphical user interface;
[0101] Check the compliance of the text after reading the JSON text. If the JSON text is wrong or contains an unspecified component name, the program will directly stop execution and give a prompt for the cause of the error. If it can be read normally, continue to execute downward.
[0102] In step S102, the JSON text is read, and on the premise that the JSON text complies with the regulati...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com