Skip to content

Commit

Permalink
Fix graph pop up
Browse files Browse the repository at this point in the history
  • Loading branch information
torzdf committed Sep 25, 2019
1 parent 0654ac8 commit c2e54bb
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions lib/gui/display_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import tkinter as tk
from tkinter import ttk

from .control_helper import ControlBuilder
from .control_helper import ControlBuilder, ControlPanelOption
from .display_graph import SessionGraph
from .display_page import DisplayPage
from .stats import Calculations, Session
Expand Down Expand Up @@ -609,16 +609,14 @@ def opts_slider(self, frame):
default = 0.90
rounding = 2
min_max = (0, 0.99)

ctl = ControlBuilder(frame,
text,
dtype,
default,
label_width=19,
rounding=rounding,
min_max=min_max,
helptext=self.set_help(item))
self.vars[item] = ctl.tk_var
slider = ControlPanelOption(text,
dtype,
default=default,
rounding=rounding,
min_max=min_max,
helptext=self.set_help(item))
self.vars[item] = slider.tk_var
ControlBuilder(frame, slider, 1, 19, None, True)
logger.debug("Built Sliders")

def opts_buttons(self, frame):
Expand Down

0 comments on commit c2e54bb

Please sign in to comment.