Skip to content

Commit

Permalink
[MTG#36] apply same fix for transformations_GUI.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tardate committed Oct 1, 2016
1 parent fa5174b commit aa10565
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions software/transformations_interface/transformations_GUI.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
from sys import platform as sys_pf
if sys_pf == 'darwin':
import matplotlib
matplotlib.use("TkAgg")

from Tkinter import *
from notebook import * # window with tabs

Expand All @@ -8,33 +13,33 @@
from hpsTransformations_GUI_frame import *
from hpsMorph_GUI_frame import *

root = Tk( )
root = Tk( )
root.title('sms-tools transformations GUI')
nb = notebook(root, TOP) # make a few diverse frames (panels), each using the NB as 'master':
nb = notebook(root, TOP) # make a few diverse frames (panels), each using the NB as 'master':

# uses the notebook's frame
f1 = Frame(nb( ))
f1 = Frame(nb( ))
stft = StftMorph_frame(f1)

f2 = Frame(nb( ))
f2 = Frame(nb( ))
sine = SineTransformations_frame(f2)

f3 = Frame(nb( ))
f3 = Frame(nb( ))
harmonic = HarmonicTransformations_frame(f3)

f4 = Frame(nb( ))
f4 = Frame(nb( ))
stochastic = StochasticTransformations_frame(f4)

f5 = Frame(nb( ))
f5 = Frame(nb( ))
hps = HpsTransformations_frame(f5)

f6 = Frame(nb( ))
hpsmorph = HpsMorph_frame(f6)

nb.add_screen(f1, "STFT Morph")
nb.add_screen(f1, "STFT Morph")
nb.add_screen(f2, "Sine")
nb.add_screen(f3, "Harmonic")
nb.add_screen(f4, "Stochastic")
nb.add_screen(f3, "Harmonic")
nb.add_screen(f4, "Stochastic")
nb.add_screen(f5, "HPS")
nb.add_screen(f6, "HPS Morph")

Expand Down

4 comments on commit aa10565

@stephenhandley
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think you'll want a similar change for models_GUI.py

@tardate
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @stephenhandley I've done that on an earlier commit 0775a7b. I haven't made a PR of my osx branch yet because I'm still working through the course.

Hmm, you made me look at this commit again. I was trying to avoid white-space patches (at least mixed in with other changes), but they obviously snuck in here!

@stephenhandley
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tardate ah, should have looked more closely at the other commits, glad it ended up being helpful tho

@tardate
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

np, thanks again. btw I've reverted the whitespace on a new branch https://github.com/tardate/sms-tools/tree/osxcompat and I'm going to delete this branch.

NB: that means this commit will disappear, and I suspect this conversation will get "lost" also.

Please sign in to comment.