Font Size: a A A

The Development Of Embedded GUI Based On Pygame

Posted on:2017-11-30Degree:MasterType:Thesis
Country:ChinaCandidate:D AnFull Text:PDF
GTID:2321330503472229Subject:Mechanical engineering
Abstract/Summary:PDF Full Text Request
With the development of embedded field and the numerical control industry, the traditional embedded NC interface has been unable to meet the needs of a wide range of CNC machine. The existing embedded interface of the CNC system can run stably for a long time, but it is still not enough in the custom interface and rapid development.The script of pygame module design and development based on the a minimalist program, which can be used for the fast development of CNC plane graphical user interface library. The graph library greatly simplifies the API interface through the way of the closure,and can achieve the complete interface drawing, with a very simplified code programming to achieve the rapid generation of interface. At the same time, the method of rapid interface generation based on XML is adopted in the programming, which highlights the characteristics of the highly simplified programming and fast interface generation.In this paper, according to the functional requirements, the design of the UI framework contains five levels of elements, including the visible level such as UI window, UI panel and UI widget etc., and the invisible part like UI main and Database. Following the container mechanism, these levels could form a complete human-machine interface.The graphics library was designed with container mechanism and event driven method.Container mechanism makes the control in the interface and layout more easily, and users can better interface generation and management. Event-driven could acquisition system internal and external environment of events, implementing event response by activating the callback function. The implementation of this part is the foundation of the interface functions.In this paper, the design of the GUI through the truss mechanical platform of the teaching experiment and numerical control plate shearing machine interface of the actual verification. The results of the experiment are complete and feasible, the software interface is correct, and the plan is feasible and can be used in practical application.
Keywords/Search Tags:GUI, Pygame, minimalist programming, event driven, Container mechanism
PDF Full Text Request
Related items