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

Added logo, fixed blur options layout

parent 62dfe9b8
...@@ -81,7 +81,7 @@ class Application: ...@@ -81,7 +81,7 @@ class Application:
toolmenu = Menu(menubar, tearoff=0) toolmenu = Menu(menubar, tearoff=0)
toolmenu.add_command(label="Show toolbar", command=self.initToolbar) toolmenu.add_command(label="Show toolbar", command=self.initToolbar)
toolmenu.add_separator() 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) toolmenu.add_command(label="Record", command=self.onRecord)
menubar.add_cascade(label="Tools", menu=toolmenu) menubar.add_cascade(label="Tools", menu=toolmenu)
...@@ -155,29 +155,15 @@ class Application: ...@@ -155,29 +155,15 @@ class Application:
blurcheck.pack(side=TOP) blurcheck.pack(side=TOP)
blurOptionsWidget = Frame(blurOptions) blurOptionsWidget = Frame(blurOptions)
blurkernelhlabel = Label(blurOptionsWidget, text="Blur kernel height").grid(row=0)
blurOptionsLabels = Frame(blurOptionsWidget) blurkernelllabel = Label(blurOptionsWidget, text="Blur kernel length").grid(row=1)
blurkernelhlabel = Label(blurOptionsLabels, text="Blur kernel height") blurdeviationXlabel = Label(blurOptionsWidget, text="Standard deviation X-axis").grid(row=2)
blurkernelhlabel.pack(side=TOP) blurdeviationYlabel = Label(blurOptionsWidget, text="Standard deviation Y-axis").grid(row=3)
blurkernelllabel = Label(blurOptionsLabels, text="Blur kernel length")
blurkernelllabel.pack(side=TOP) blurkernelhscale = Scale(blurOptionsWidget, from_=0, to=50, orient=HORIZONTAL, resolution=2, variable=self.options['BlurKernelh']).grid(row=0, column=1)
blurdeviationXlabel = Label(blurOptionsLabels, text="Standard deviation X-axis") blurkernellscale = Scale(blurOptionsWidget, from_=0, to=50, orient=HORIZONTAL, resolution=2, variable=self.options['BlurKernelw']).grid(row=1, column=1)
blurdeviationXlabel.pack(side=TOP) blurdeviationXscale = Scale(blurOptionsWidget, from_=0, to=50, orient=HORIZONTAL, variable=self.options['BlurDeviationX']).grid(row=2, column=1)
blurdeviationYlabel = Label(blurOptionsLabels, text="Standard deviation Y-axis") blurdeviationYscale = Scale(blurOptionsWidget, from_=0, to=50, orient=HORIZONTAL, variable=self.options['BlurDeviationY']).grid(row=3, column=1)
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)
blurOptionsWidget.pack(side=TOP) blurOptionsWidget.pack(side=TOP)
blurOptions.protocol("WM_DELETE_WINDOW", lambda arg=blurOptions : self.onClosingBlurOptions(arg)) 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