FlatCAMObjs now stored in ListStore. Expected to solve several issues. Some updates to the new architecture still pending.

This commit is contained in:
Juan Pablo Caram
2014-04-04 11:41:03 -04:00
parent 609561f7a3
commit 9740739f05
3 changed files with 95 additions and 57 deletions

View File

@@ -9,6 +9,7 @@
from gi.repository import Gtk
from gi.repository import Gdk
from gi.repository import GLib
from gi.repository import GObject
from camlib import *
@@ -16,7 +17,7 @@ from camlib import *
########################################
## FlatCAMObj ##
########################################
class FlatCAMObj:
class FlatCAMObj(GObject.GObject, object):
"""
Base type of objects handled in FlatCAM. These become interactive
in the GUI, can be plotted, and their options can be modified
@@ -28,6 +29,8 @@ class FlatCAMObj:
app = None
def __init__(self, name):
GObject.GObject.__init__(self)
self.options = {"name": name}
self.form_kinds = {"name": "entry_text"} # Kind of form element for each option
self.radios = {} # Name value pairs for radio sets