minor cleanup

This commit is contained in:
Dave Schuyler 2001-03-14 04:29:46 +00:00
parent 15a155032c
commit 02f629b118

View File

@ -3656,20 +3656,6 @@ class LevelEditorPanel(Pmw.MegaToplevel):
textvariable=self.baselineString) textvariable=self.baselineString)
self.baselineTextBox.grid(row=1, column=0, columnspan=3) self.baselineTextBox.grid(row=1, column=0, columnspan=3)
"""levelAttribute = (
self.styleManager.attributeDictionary
['baseline_style']['toontown_central']
.getDict().keys())
levelAttribute.sort()
baselineStyleList = ["<custom>", "Plain"] + levelAttribute
self.baselineStyleMenu = Pmw.ComboBox(
gridFrame, labelpos = W,
label_text = 'Style:', entry_width = 12,
selectioncommand = self.setSignBaselineStyle, history = 0,
scrolledlist_items = baselineStyleList)
self.baselineStyleMenu.selectitem(0)
self.baselineStyleMenu.grid(row=2, column=0, columnspan=3)"""
fontList = [""]+self.styleManager.getCatalogCodes('font') fontList = [""]+self.styleManager.getCatalogCodes('font')
self.fontMenu = Pmw.ComboBox( self.fontMenu = Pmw.ComboBox(
gridFrame, labelpos = W, gridFrame, labelpos = W,
@ -4090,7 +4076,8 @@ class LevelEditorPanel(Pmw.MegaToplevel):
def setSignBaselineStyle(self, val): def setSignBaselineStyle(self, val):
baseline=self.currentBaselineDNA baseline=self.currentBaselineDNA
if not baseline: if baseline == None:
print "\n\nbaseline == None"
return #skyler: This isn't working yet. return #skyler: This isn't working yet.
# As a workaround, select the baseline from the tk panel. # As a workaround, select the baseline from the tk panel.
# Try to find the first baseline in the sign: # Try to find the first baseline in the sign: