Skip to content

Commit

Permalink
hide layer properties pages for eigenvector layers
Browse files Browse the repository at this point in the history
  • Loading branch information
tobias47n9e committed May 14, 2015
1 parent 2177d1c commit 3cf0660
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions innstereo/layer_properties.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,14 @@ def load_rose_properties(self):
def hide_gui_elements(self):
"""
Hides some elements of the GUI depending on the layer type
Pages:
0: Great and Small Circles
1: Poles
2: Lines
3: Fault Plots
4: Contours
5: Rose Diagram
"""
self.notebook = \
self.builder.get_object("notebook1")
Expand All @@ -297,6 +305,11 @@ def hide_gui_elements(self):
self.notebook.get_nth_page(5).hide()
elif layertype == "faultplane":
self.notebook.get_nth_page(4).hide()
elif layertype == "eigenvector":
self.notebook.get_nth_page(0).hide()
self.notebook.get_nth_page(1).hide()
self.notebook.get_nth_page(3).hide()
self.notebook.get_nth_page(4).hide()
self.notebook.set_current_page(self.layer.get_page())

def on_switch_render_linears_state_set(self, switch, state):
Expand Down

0 comments on commit 3cf0660

Please sign in to comment.