Skip to content

Files & classes

Bernd Klein edited this page Oct 15, 2018 · 2 revisions

File: main.py

This file is called to start the program and create a menu on screen. If new functionalities are implemented, the call to this new class have to be implemented inside this class.

(1) - create a new menu entry

(2) - create a new caller method for the new frame

File & Class

GeometricalFrame.py / class GeometricalFrame(Frame)

This class is an abstract class for all new individual shape/drilling/pocket functions. Inside this class a couple of standard methods are implemented to make the life easier :-)

An windows is divided into four parts

  • Image area
  • standard frame content (this widgets are for all shapes/drillings/...
  • individual frame content (this widgets are per shape/drilling/...
  • button area

This class contain all callbacks from buttons and a simple MessageBox function (ERROR; INFO; WARN)

contouArc.py -> individual implementation of an contour arc (circle)

contourRec.py -> dito

tkSimpleDialog.py

class class Dialog(Toplevel):

abstract class to create a simple modal dialog (is used from all individual implementations

class GCodeDialog(Dialog):

a sub dialog which is called if user click on GCode-Button This dialog show only the generated GCode

ValidateEntry(Entry)

a new implementation of an Entry-Widget with some validations

Subclasses are IntegerEntry & FloatEntry. This subclasses can be used to insert numbers or floats

shapeTemplate.py

As name says. This template can be used to create new implementations. It contains the major implementation for a new shape or drilling or something else. You have to adapt implemented code to you own use.

Clone this wiki locally