Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

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

Pending Publication Date: 2022-05-06
INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] The GUI interface is an essential part of developing a desktop client. The GUI interface is the graphical user interface; however, the programming of the graphical user interface requires the user to have certain programming skills, and different programming languages ​​​​need to use different writing forms. When used in different projects When different languages ​​are used, different GUI programmers need to be assigned to each project, and different GUIs cannot be managed uniformly
[0003] The writing methods of the graphical user interface in the prior art include: first, Python uses the pyqt5 code to write the GUI interface, and can use Qt-Designer to build a simple interface, but it cannot be accurately positioned
Second, Java uses JavaFx or Swing to directly use code to write GUIs, which requires users to have high Java programming experience
Therefore, the programming method of the prior art graphical user interface is cumbersome to use a specific language to write codes, and requires the graphical user interface writers to have a high knowledge reserve for the language itself, but the personnel who are familiar with multiple languages ​​​​at the same time is relatively scarce, so it is necessary to provide for different languages. The language is equipped with a dedicated graphical user interface writer
There is no unified standard for the implementation of GUI codes in different languages, and it is impossible to migrate between different languages

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Graphical user interface compiling method, system and equipment and storage medium
  • Graphical user interface compiling method, system and equipment and storage medium
  • Graphical user interface compiling method, system and equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a graphical user interface compiling method, system and device and a storage medium. The method comprises the steps that a JSON text is adopted as a compiling specification of a graphical user interface; the method comprises the following steps: reading a JSON text, firstly creating a root component on the premise that the JSON text conforms to a specification, and then sequentially creating component objects from outside to inside to analyze the JSON text into an intermediate data structure; and after the intermediate data structure is analyzed, sequentially converting object types in the JSON text into corresponding component types in corresponding languages from a root component object, and finally converting the object types into corresponding codes according to a father-child structure. Based on the method, the invention further provides a system and equipment for compiling the graphical user interface and a storage medium. According to the method, the JSON is used as the compiling statement, so that the compiling mode of the GUI interface can be simplified and can be converted into different languages, the interface content can be conveniently and uniformly managed, and meanwhile, the convenience of converting one-time compiling into different languages is realized.

Description

technical field [0001] The invention belongs to the technical field of graphic user interface development, in particular to a method, system, device and storage medium for writing a graphic user interface. Background technique [0002] The GUI interface is an essential part of developing a desktop client. The GUI interface is the graphical user interface; however, the programming of the graphical user interface requires the user to have certain programming skills, and different programming languages ​​​​need to use different writing forms. When used in different projects When different languages ​​are used, different GUI programmers need to be assigned to each project, and different GUIs cannot be managed uniformly. [0003] The writing methods of the graphical user interface in the prior art include: first, Python uses the pyqt5 code to write the GUI interface, and can use Qt-Designer to build a simple interface, but it cannot achieve precise positioning. The second type, ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/38G06F8/41
CPCG06F8/38G06F8/427Y02D10/00
Inventor 周兴国徐基法
Owner INSPUR SUZHOU INTELLIGENT TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products