Commit 0a793d2b authored by Kieran Hymas's avatar Kieran Hymas

Added logo, fixed blur options layout

parent 62dfe9b8
......@@ -81,7 +81,7 @@ class Application:
toolmenu = Menu(menubar, tearoff=0)
toolmenu.add_command(label="Show toolbar", command=self.initToolbar)
toolmenu.add_separator()
toolmenu.add_command(label="Snapshot", command=self.onSnapshot)
toolmenu.add_command(label="Blur", command=self.onBlur)
toolmenu.add_command(label="Record", command=self.onRecord)
menubar.add_cascade(label="Tools", menu=toolmenu)
......@@ -155,29 +155,15 @@ class Application:
blurcheck.pack(side=TOP)
blurOptionsWidget = Frame(blurOptions)
blurOptionsLabels = Frame(blurOptionsWidget)
blurkernelhlabel = Label(blurOptionsLabels, text="Blur kernel height")
blurkernelhlabel.pack(side=TOP)
blurkernelllabel = Label(blurOptionsLabels, text="Blur kernel length")
blurkernelllabel.pack(side=TOP)
blurdeviationXlabel = Label(blurOptionsLabels, text="Standard deviation X-axis")
blurdeviationXlabel.pack(side=TOP)
blurdeviationYlabel = Label(blurOptionsLabels, text="Standard deviation Y-axis")
blurdeviationYlabel.pack(side=TOP)
blurOptionsLabels.pack(side=LEFT)
blurOptionsScales = Frame(blurOptionsWidget)
blurkernelhscale = Scale(blurOptionsScales, from_=0, to=50, orient=HORIZONTAL, resolution=2, variable=self.options['BlurKernelh'])
blurkernelhscale.pack(side=TOP)
blurkernellscale = Scale(blurOptionsScales, from_=0, to=50, orient=HORIZONTAL, resolution=2, variable=self.options['BlurKernelw'])
blurkernellscale.pack(side=TOP)
blurdeviationXscale = Scale(blurOptionsScales, from_=0, to=50, orient=HORIZONTAL, variable=self.options['BlurDeviationX'])
blurdeviationXscale.pack(side=TOP)
blurdeviationYscale = Scale(blurOptionsScales, from_=0, to=50, orient=HORIZONTAL, variable=self.options['BlurDeviationY'])
blurdeviationYscale.pack(side=TOP)
blurOptionsScales.pack(side=LEFT)
blurkernelhlabel = Label(blurOptionsWidget, text="Blur kernel height").grid(row=0)
blurkernelllabel = Label(blurOptionsWidget, text="Blur kernel length").grid(row=1)
blurdeviationXlabel = Label(blurOptionsWidget, text="Standard deviation X-axis").grid(row=2)
blurdeviationYlabel = Label(blurOptionsWidget, text="Standard deviation Y-axis").grid(row=3)
blurkernelhscale = Scale(blurOptionsWidget, from_=0, to=50, orient=HORIZONTAL, resolution=2, variable=self.options['BlurKernelh']).grid(row=0, column=1)
blurkernellscale = Scale(blurOptionsWidget, from_=0, to=50, orient=HORIZONTAL, resolution=2, variable=self.options['BlurKernelw']).grid(row=1, column=1)
blurdeviationXscale = Scale(blurOptionsWidget, from_=0, to=50, orient=HORIZONTAL, variable=self.options['BlurDeviationX']).grid(row=2, column=1)
blurdeviationYscale = Scale(blurOptionsWidget, from_=0, to=50, orient=HORIZONTAL, variable=self.options['BlurDeviationY']).grid(row=3, column=1)
blurOptionsWidget.pack(side=TOP)
blurOptions.protocol("WM_DELETE_WINDOW", lambda arg=blurOptions : self.onClosingBlurOptions(arg))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment