当前位置: 首页>>代码示例>>Python>>正文


Python vanilla.FloatingWindow方法代码示例

本文整理汇总了Python中vanilla.FloatingWindow方法的典型用法代码示例。如果您正苦于以下问题:Python vanilla.FloatingWindow方法的具体用法?Python vanilla.FloatingWindow怎么用?Python vanilla.FloatingWindow使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在vanilla的用法示例。


在下文中一共展示了vanilla.FloatingWindow方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __init__

# 需要导入模块: import vanilla [as 别名]
# 或者: from vanilla import FloatingWindow [as 别名]
def __init__( self ):
		# Window 'self.w':
		textY  = 19
		spaceX = 10
		spaceY = 10
		buttonX = 90
		buttonY = 20
		windowWidth  = spaceX*4+buttonX*3
		windowHeight = spaceY*6+textY*2+buttonY
		self.w = vanilla.FloatingWindow(
			( windowWidth, windowHeight ), # default window size
			"Set Kerning Groups", # window title
		)
		self.w.textLower = vanilla.TextBox((spaceX, spaceY, 200, textY), "Lowercase style?", sizeStyle='regular')
		self.w.normalButton = vanilla.Button((spaceX, spaceY*2+textY, buttonX, buttonY), "Normal", sizeStyle='regular', callback=self.SetKernPairsMain )
		self.w.cursiveButton = vanilla.Button((spaceX*2+buttonX, spaceY*2+textY, buttonX, buttonY), "Cursive", sizeStyle='regular', callback=self.SetKernPairsMain )
		self.w.allcapButton = vanilla.Button((spaceX*3+buttonX*2, spaceY*2+textY, buttonX, buttonY), "All Cap", sizeStyle='regular', callback=self.SetKernPairsMain )

		self.w.line = vanilla.HorizontalLine((spaceX, spaceX*4+textY*2, -spaceX, 1))
		self.w.radioButton = vanilla.RadioGroup((spaceX, spaceY*5+textY*2, 300, textY), ["All Glyphs", "Selected Glyphs"], sizeStyle='regular', isVertical=False)

		# Open window and focus on it:
		self.w.open()
		self.w.radioButton.set(0)
		self.w.makeKey() 
开发者ID:Tosche,项目名称:Glyphs-Scripts,代码行数:27,代码来源:Set Kerning Groups (Lat-Grk-Cyr).py

示例2: __init__

# 需要导入模块: import vanilla [as 别名]
# 或者: from vanilla import FloatingWindow [as 别名]
def __init__(self):
		self.w = vanilla.FloatingWindow(
			( 280, 40 ), # default window size
			"Name This Point", # window title
			autosaveName = "com.wwhh.namethispoint.mainwindow" # stores last window position and size
			)

		self.w.textSearch = vanilla.TextBox((15, 12+2, 67, 14), "Set Name:", sizeStyle='small')
		self.w.pointName = vanilla.EditText((15+67, 12, 110, 19), "", sizeStyle='small', callback=self.SavePreferences)

		self.w.findButton = vanilla.Button((-80, 12+1, -15, 17), "Set Name", sizeStyle='small', callback=self.buttonCallback)
		self.w.setDefaultButton( self.w.findButton )

		# Load Settings:
		if not self.LoadPreferences():
			print "Note: 'Name This' could not load preferences. Will resort to defaults"

		self.w.open()
		self.w.makeKey()

		# Set defaults for class variables
		self.pointName = self.w.pointName.get() 
开发者ID:weiweihuanghuang,项目名称:wei-glyphs-scripts,代码行数:24,代码来源:Name This.py

示例3: __init__

# 需要导入模块: import vanilla [as 别名]
# 或者: from vanilla import FloatingWindow [as 别名]
def __init__(self):
		self.w = vanilla.FloatingWindow(
			( 280, 40 ), # default window size
			"Find and Delete Anchor Containing", # window title
			autosaveName = "com.wwhh.FindAnchors.mainwindow" # stores last window position and size
			)

		self.w.textSearch = vanilla.TextBox((15, 12+2, 67, 14), "Search for:", sizeStyle='small')
		self.w.searchFor = vanilla.EditText((15+67, 12, 110, 19), "bottom", sizeStyle='small', callback=self.SavePreferences)

		self.w.findButton = vanilla.Button((-80, 12+1, -15, 17), "Delete", sizeStyle='small', callback=self.buttonCallback)
		self.w.setDefaultButton( self.w.findButton )

		# Load Settings:
		if not self.LoadPreferences():
			print "Note: 'Adjust Kerning in Master' could not load preferences. Will resort to defaults"

		self.w.open()
		self.w.makeKey()

		# Set defaults for class variables
		self.searchFor = self.w.searchFor.get() 
开发者ID:weiweihuanghuang,项目名称:wei-glyphs-scripts,代码行数:24,代码来源:Find and Delete Anchors.py

示例4: __init__

# 需要导入模块: import vanilla [as 别名]
# 或者: from vanilla import FloatingWindow [as 别名]
def __init__(self):
		self.w = vanilla.FloatingWindow(
			( 360, 40 ), # default window size
			"Add this /s/t/r/i/n/g between selected glyphs", # window title
			autosaveName = "com.wwhh.insertString.mainwindow" # stores last window position and size
			)

		self.w.textAdd = vanilla.TextBox((10, 12+2, 32, 14), "Add:", sizeStyle='small')
		self.w.addThisString = vanilla.EditText((10+32, 12, 220, 19), "", sizeStyle='small', callback=self.SavePreferences)

		self.w.findButton = vanilla.Button((-80, 12+1, -15, 17), "Add", sizeStyle='small', callback=self.buttonCallback)
		self.w.setDefaultButton( self.w.findButton )

		# Load Settings:
		if not self.LoadPreferences():
			print "Note: 'Add String Between Each Selected Glyph' could not load preferences. Will resort to defaults"

		self.w.open()
		self.w.makeKey()

		# Set defaults for class variables
		self.addThisString = self.w.addThisString.get() 
开发者ID:weiweihuanghuang,项目名称:wei-glyphs-scripts,代码行数:24,代码来源:AddStringBetweenEachGlyph.py

示例5: __init__

# 需要导入模块: import vanilla [as 别名]
# 或者: from vanilla import FloatingWindow [as 别名]
def __init__( self ):
		self.w = vanilla.FloatingWindow( (200, 110), "Delete Kerning", minSize=(180, 110), maxSize=(600, 110), autosaveName="com.wwhh.DeleteKerning.mainwindow" )

		self.w.text_1 = vanilla.TextBox( (15-1, 12+2, -15, 14), "All kerning pairs in this Master smaller than:", sizeStyle='small' )
		self.w.value_1 = vanilla.EditText((15, 36, 50, 19), "10", sizeStyle='small', callback=self.SavePreferences)

		self.w.runButton = vanilla.Button((-100, 36, -10, 17), "Adjust", sizeStyle='small', callback=self.DeleteKerningMain )
		self.w.setDefaultButton( self.w.runButton )

		self.w.keepWindow = vanilla.CheckBox( (15, 60, -15, 20), "Keep window open", value=False, callback=self.SavePreferences, sizeStyle='small' )

		try:
			self.LoadPreferences( )
		except:
			pass

		self.w.open() 
开发者ID:weiweihuanghuang,项目名称:wei-glyphs-scripts,代码行数:19,代码来源:Delete Kerning Pairs Smaller Than Popup.py

示例6: spaceCenterOpenCallback

# 需要导入模块: import vanilla [as 别名]
# 或者: from vanilla import FloatingWindow [as 别名]
def spaceCenterOpenCallback(self, notification):
        if (not self.popupOpen) and (len(self.metricsGroups) > 0):
            self.w = FloatingWindow((160, 36), 'Group Spacing')
            self.w.activateGroups = CheckBox((9, -27, 151, 18), "Activate Group spacing", value=self.enableGroupSpacing, callback=self.enableGroupSpacingCallback, sizeStyle="small")
            self.w.bind('close', self.windowCloseCallback)
            self.w.open()
            self.popupOpen = True 
开发者ID:loicsander,项目名称:Robofont-scripts,代码行数:9,代码来源:spacing-observer.py

示例7: __init__

# 需要导入模块: import vanilla [as 别名]
# 或者: from vanilla import FloatingWindow [as 别名]
def __init__(self):
        self.searchResults = []
        self.selectedChars = ""

        self.w = FloatingWindow((300, 400), "Unicode Picker", minSize=(250, 300),
                                autosaveName="UnicodePicker")
        y = 8
        self.w.searchField = EditText((10, y, -10, 25),
                                      placeholder="Search Unicode name or value",
                                      callback=self.searchTextChanged_)

        y = 40
        columnDescriptions = [
            dict(title="char", width=40,
                 cell=makeTextCell(align="center", font=AppKit.NSFont.systemFontOfSize_(14))),
            dict(title="unicode", width=60, cell=makeTextCell(align="right")),
            dict(title="name"),
        ]
        self.w.unicodeList = List((0, y, 0, -100), [], columnDescriptions=columnDescriptions,
                                  rowHeight=18,
                                  selectionCallback=self.listSelectionChanged_,
                                  doubleClickCallback=self.listDoubleClickCallback_)
        self.w.unicodeList._nsObject.setBorderType_(AppKit.NSNoBorder)

        y = -100
        self.w.divider = HorizontalLine((0, y, 0, 1))
        y += 5
        self.w.unicodeText = TextBox((20, y, -10, 55), "")
        self.w.unicodeText._nsObject.cell().setFont_(AppKit.NSFont.systemFontOfSize_(36))
        self.w.unicodeText._nsObject.cell().setLineBreakMode_(AppKit.NSLineBreakByTruncatingMiddle)
        y += 55
        self.w.copyButton = Button((20, y, 120, 25), "Copy", callback=self.copy_)
        self.w.copyButton.enable(False)

        self.w.open()
        self.w._window.setWindowController_(self)
        self.w._window.setBecomesKeyOnlyIfNeeded_(False)
        self.w._window.makeKeyWindow() 
开发者ID:justvanrossum,项目名称:fontgoggles,代码行数:40,代码来源:unicodePicker.py

示例8: __init__

# 需要导入模块: import vanilla [as 别名]
# 或者: from vanilla import FloatingWindow [as 别名]
def __init__( self ):
		# Window 'self.w':
		edY = 22
		txY = 17
		sp = 10
		btnX = 100
		btnY = 22
		windowWidth  = 300
		windowHeight = sp*5+edY*2+edY+btnY+sp
		# windowWidthResize  = 100 # user can resize width by this value
		# windowHeightResize = 0   # user can resize height by this value
		self.w = vanilla.FloatingWindow(
			( windowWidth, windowHeight ), # default window size
			"Search Glyph In Class Features", # window title
			# minSize = ( windowWidth, windowHeight ), # minimum size (for resizing)
			# maxSize = ( windowWidth, windowHeight ), # maximum size (for resizing)
			autosaveName = "com.Tosche.SearchGlyphInClassFeatures.mainwindow" # stores last window position and size
		)
		
		listOfOptions = [ "Check which alternates are unused", "Check if/where the selected glyph is used", "Any keyword" ]
		self.w.radioButtons = vanilla.RadioGroup( (sp, sp, -sp, edY*len(listOfOptions) ), listOfOptions, sizeStyle = 'regular', callback=self.radio )
		self.w.edit_1 = vanilla.EditText( (sp+20, sp*1.5+edY*len(listOfOptions), -sp, edY), "", sizeStyle = 'regular')
		
		# Run Button:
		self.w.runButton = vanilla.Button((-sp-btnX, sp*5+edY*2+edY, -sp, btnY), "Check", sizeStyle='regular', callback=self.Search )
		self.w.setDefaultButton( self.w.runButton )
				
		# Open window and focus on it:
		self.w.radioButtons.set( 0 )
		self.w.edit_1.enable(False)
		self.w.open()
		self.w.makeKey() 
开发者ID:Tosche,项目名称:Glyphs-Scripts,代码行数:34,代码来源:Search Glyph in Classes & Features.py

示例9: __init__

# 需要导入模块: import vanilla [as 别名]
# 或者: from vanilla import FloatingWindow [as 别名]
def __init__( self ):
		# Window 'self.w':
		editX = 180
		editY = 22
		textY  = 17
		spaceX = 10
		spaceY = 10
		windowWidth  = spaceX*3+editX*2+85
		windowHeight = 150

		self.w = vanilla.FloatingWindow(
			( windowWidth, windowHeight ), # default window size
			"Rename Kerning Groups", # window title
			minSize = ( windowWidth, windowHeight ), # minimum size (for resizing)
			maxSize = ( windowWidth + 100, windowHeight ), # maximum size (for resizing)
			autosaveName = "com.Tosche.RenameKerningGroups.mainwindow" # stores last window position and size
		)
		
		# UI elements:
		self.w.radio = vanilla.RadioGroup( (spaceX+130, spaceY, 120, textY), ["Left", "Right"], isVertical = False, sizeStyle='regular', callback=self.switchList)
		self.w.radio.set(0)
		self.w.text1 = vanilla.TextBox( (spaceX, spaceY*2+textY, 120, textY), "Rename this Group", sizeStyle='regular' )
		self.w.text2 = vanilla.TextBox( (spaceX, spaceY*3+editY+textY, 120, textY), "to this", sizeStyle='regular' )
		self.w.popup = vanilla.PopUpButton( (spaceX+130, spaceY*2+textY, -15, editY), [str(x) for x in sorted(groupsL)], sizeStyle='regular' )
		self.w.newName = vanilla.EditText( (spaceX+130, spaceY*3+editY+textY, -15, editY), "", sizeStyle = 'regular' )
		# Run Button:
		self.w.runButton = vanilla.Button((-80-15, spaceY*4+editY*3, -15, -15), "Run", sizeStyle='regular', callback=self.RenameKerningGroupsMain )
		self.w.setDefaultButton( self.w.runButton )
		# Open window and focus on it:
		self.w.open()
		self.w.makeKey() 
开发者ID:Tosche,项目名称:Glyphs-Scripts,代码行数:33,代码来源:Rename Kerning Groups.py

示例10: __init__

# 需要导入模块: import vanilla [as 别名]
# 或者: from vanilla import FloatingWindow [as 别名]
def __init__( self ):
		spaceX = 10
		buttonSizeX = 60
		Y = 16
		spaceY = 10
		windowWidth  = 360
		windowHeight = spaceY*2+(Y+spaceY)*6
		self.w = vanilla.FloatingWindow(
			( windowWidth, windowHeight ), # default window size
			"Copy kerning to Greek & Cyrillic", # window title
			autosaveName = "com.Tosche.CopyKerningToGreekCyrillic.mainwindow" # stores last window position and size
		)
		
		# UI :
		self.w.instruction = vanilla.TextBox((spaceX, spaceY, 340, 87), "This script copies your Latin kerning to the common shapes of Greek and Cyrillic, including small caps.\nExceptions and absent glyphs are skipped.\nIt's best used after finishing Latin kerning and before starting Cyrillic and Greek.")
		self.w.AllCapBox = vanilla.CheckBox( (spaceX, spaceY+87+spaceY, 270, Y), "ALL CAP (skip lowercase)", callback=self.triggerCursive, value=False)
		self.w.CursiveBox = vanilla.CheckBox( (spaceX, spaceY+87+spaceY+Y+spaceY, 270, Y), 'Cyrillic lowercase is "cursive"', value=False)
		self.w.runButton = vanilla.Button((-80-15, spaceY+(Y+spaceY)*5, -15, Y), "Copy", sizeStyle='regular', callback=self.CopyKerningToGreekCyrillicMain )
		self.w.setDefaultButton( self.w.runButton )

		# Load Settings:
		if not self.LoadPreferences():
			print("Note: 'Copy kerning to Greek & Cyrillic (GUI)' could not load preferences. Will resort to defaults")
		
		# Open window and focus on it:
		self.w.open()
		self.w.makeKey() 
开发者ID:Tosche,项目名称:Glyphs-Scripts,代码行数:29,代码来源:Copy Kerning to Greek & Cyrillic.py

示例11: __init__

# 需要导入模块: import vanilla [as 别名]
# 或者: from vanilla import FloatingWindow [as 别名]
def __init__( self ):
		# Window 'self.w':
		left = 14
		top = 14
		leading = 36
		textW = 220
		textH = 20
		xSpace = 10
		buttonW = 100
		buttonTop = top-5
		buttonH = 30
		windowWidth  = left+textW+xSpace+buttonW+left
		windowHeight = top+leading+leading+leading
		self.w = vanilla.FloatingWindow(
			( windowWidth, windowHeight ), # default window size
			"Report Metric Keys", # window title
		)
		
		# UI elements:
		self.w.textInvalid = vanilla.TextBox( (left, top, textW, textH), "Invalid glyphs in sidebearing keys", sizeStyle='regular' )
		self.w.textDifferent = vanilla.TextBox( (left, top+leading, textW, textH), "Different keys in each master", sizeStyle='regular' )
		self.w.textNesting = vanilla.TextBox( (left, top+leading+leading, textW, textH), "Nested sidebearing keys", sizeStyle='regular' )
		
		# Run Button:
		self.w.reportInvalid = vanilla.Button((left+textW+xSpace, buttonTop, buttonW, buttonH), "Report", sizeStyle='regular', callback=self.reportInvalid )
		self.w.reportDifference = vanilla.Button((left+textW+xSpace, buttonTop+leading, buttonW, buttonH), "Report", sizeStyle='regular', callback=self.reportDifference )
		self.w.reportNest = vanilla.Button((left+textW+xSpace, buttonTop+leading+leading, buttonW, buttonH), "Report", sizeStyle='regular', callback=self.reportNest )
		
		# Open window and focus on it:
		self.w.open()
		self.w.makeKey() 
开发者ID:Tosche,项目名称:Glyphs-Scripts,代码行数:33,代码来源:Report Metric Keys.py

示例12: __init__

# 需要导入模块: import vanilla [as 别名]
# 或者: from vanilla import FloatingWindow [as 别名]
def __init__( self ):
		editX = 55
		editY = 22
		textY  = 17
		spaceX = 10
		spaceY = 10
		buttonSizeX = 60
		windowWidth  = spaceX*2+editX*2+160
		windowHeight = 150
		self.w = vanilla.FloatingWindow( (windowWidth, windowHeight), "Transform Images with Proper Maths", autosaveName="com.Tosche.TransformImagesWithRealMaths.mainwindow" )
		self.w.checkAbsolute = vanilla.CheckBox( (spaceX, spaceY, 75, textY), "Absolute", sizeStyle='regular', callback=self.changeAbsolute )
		self.w.move_text1 = vanilla.TextBox( (spaceX,  spaceY*2+editY+2, 100, textY), "Move x/y to:", sizeStyle='regular' )
		self.w.move_X = vanilla.EditText( (spaceX+88,    spaceY*2+editY, editX, editY), "0", sizeStyle = 'regular')
		self.w.move_Y = vanilla.EditText( (spaceX+88+editX+5, spaceY*2+editY, editX, editY), "0", sizeStyle = 'regular')
		self.w.move_text2 = vanilla.TextBox( (spaceX+88+editX*2+10,  spaceY*2+editY+2, -15, textY), "units", sizeStyle='regular' )

		self.w.scale_text1 = vanilla.TextBox( (spaceX, spaceY*3+editY*2+2, 100, textY), "Scale x/y to:", sizeStyle='regular' )
		self.w.scale_X = vanilla.EditText( (spaceX+88,    spaceY*3+editY*2, editX, editY), "100", sizeStyle = 'regular')
		self.w.scale_Y = vanilla.EditText( (spaceX+88+editX+5, spaceY*3+editY*2, editX, editY), "100", sizeStyle = 'regular')
		self.w.scale_text2 = vanilla.TextBox( (spaceX+88+editX*2+10, spaceY*3+editY*2+2, -15, textY), "%", sizeStyle='regular' )
		
		self.w.runButton   = vanilla.Button((-60-15, -20-15, -15, -15), "Go", sizeStyle='regular', callback=self.TransformImagesMain )
		self.w.setDefaultButton( self.w.runButton )
		
		try:
			self.LoadPreferences( )
		except:
			pass
		self.w.checkAbsolute.set(True)
		self.w.open() 
开发者ID:Tosche,项目名称:Glyphs-Scripts,代码行数:32,代码来源:Transform Images with Proper Maths.py

示例13: window

# 需要导入模块: import vanilla [as 别名]
# 或者: from vanilla import FloatingWindow [as 别名]
def window(self):
		self.w = vanilla.FloatingWindow((250, 180), "HT Letterspacer", minSize=(225, 180), maxSize=(225, 180), autosaveName="com.ht.spacer")
		self.w.text_3 = vanilla.TextBox((210, 25, -170, 14), "%", sizeStyle='small')
		self.w.text_4 = vanilla.TextBox((15, 50, 100, 14), "Area", sizeStyle='small')
		self.w.text_4b = vanilla.TextBox((120, 50, 50, 14), self.engine.paramArea, sizeStyle='small')
		self.w.text_5 = vanilla.TextBox((15, 75, 100, 14), "Depth", sizeStyle='small')
		self.w.text_5b = vanilla.TextBox((120, 75, 50, 14), self.engine.paramDepth, sizeStyle='small')
		self.w.text_6 = vanilla.TextBox((15, 100, 100, 14), "Overshoot", sizeStyle='small')
		self.w.text_6b = vanilla.TextBox((120, 100, 50, 14), self.engine.paramOver, sizeStyle='small')
		self.w.LSB = vanilla.CheckBox((15, 15, 40, 18), "LSB", value=True, sizeStyle='small', callback=self.SavePreferences)
		self.w.RSB = vanilla.CheckBox((15 + 45, 15, 40, 18), "RSB", value=True, sizeStyle='small', callback=self.SavePreferences)
		self.w.tab = vanilla.CheckBox((15 + 45 + 45, 15, 60, 18), "Tabular", value=False, sizeStyle='small', callback=self.SavePreferences)
		self.w.width = vanilla.EditText((170, 15, 40, 18), widthAvg(self.mySelection), sizeStyle='small')
		self.w.area = vanilla.EditText((170, 50 - 3, 40, 18), "430", sizeStyle='small')
		self.w.prof = vanilla.EditText((170, 75 - 3, 40, 18), "20", sizeStyle='small')
		self.w.ex = vanilla.EditText((170, 100 - 3, 40, 18), "0", sizeStyle='small')

		self.w.copyButton = vanilla.Button((15, 125, -90, 30), "Copy Parameters", sizeStyle='small', callback=self.copyParameters)
		self.w.runButton = vanilla.Button((-80, 125, -15, 30), "Apply", sizeStyle='small', callback=self.dialogCallback)

		self.w.setDefaultButton(self.w.runButton)

		if not self.LoadPreferences():
			GlyphsApp.Message("Error :(", "Could not load preferences. Will resort to defaults.", OKButton="OK")

		self.w.open()
		self.w.makeKey() 
开发者ID:huertatipografica,项目名称:HTLetterspacer,代码行数:29,代码来源:HT_LetterSpacer_script.py

示例14: __init__

# 需要导入模块: import vanilla [as 别名]
# 或者: from vanilla import FloatingWindow [as 别名]
def __init__(self, title):
        self.w = vanilla.FloatingWindow((330, 500), title, minSize=(300,500), maxSize=(1000,700))
        self.leading = 14
        self.head_count = 0

        self.w.open() 
开发者ID:m4rc1e,项目名称:mf-glyphs-scripts,代码行数:8,代码来源:wrappers.py

示例15: __init__

# 需要导入模块: import vanilla [as 别名]
# 或者: from vanilla import FloatingWindow [as 别名]
def __init__(self, config_file):
        self.w = vanilla.FloatingWindow((330, 500), "QA Selected Font", minSize=(300,500), maxSize=(1000,700))
        self.leading = 14
        self.head_count = 0

        self._heading('Meta Data')
        # iterate over config file and add each entry
        for key in config_file:
            self._checkbox(key, '%s' % key)
        self._checkbox('check_family_name', "Check font name has ASCII chars only")
        self._checkbox('check_names_length', "Check names are under 31 chars")
        self._checkbox('check_absolute_panose', "Check Panose is not assigned for all weights")

        # Vertical Metrics
        self._heading('Vertical Metrics:')
        self._checkbox('metrics_fam_vals', "Instances/Masters have same values")

        # Check Glyphs
        self._heading('Glyphs:')
        self._checkbox('glyph_no_dups', "No duplicate glyphs")
        self._checkbox('glyph_nbspace_space', "nbspace and space are same width")
        self._checkbox('glyphs_missing_conts_or_comps', "Glyphs missing contours")
        self._checkbox('glyphs_duplicate_components', "Glyphs with duplicate components")
        self._checkbox('glyphs_00_glyphs', "Glyphs with .00x suffix")
        self._checkbox('glyphs_compatibility', "Instance Compatibility")
        self._checkbox('glyphs_missing_components', "Glyphs missing GlyphData.xml components", value=False)

        # Check OT Features
        self._heading('OT Features:')
        self._checkbox('ot_dynamic_frac', "Has Dynamic fraction?")
        self._checkbox('vietnamese_correct_schema', "Vietnamese GF Schema", value=False)

        # Check button
        self.w.button = vanilla.Button((14, self.leading+40, 300, 20), "Check", callback=self.buttonCallback)
        # Resize window to fit all tests
        self.w.setPosSize((100.0, 100.0, 350.0, self.leading + 75))
        self.w.open() 
开发者ID:m4rc1e,项目名称:mf-glyphs-scripts,代码行数:39,代码来源:checkfamily.py


注:本文中的vanilla.FloatingWindow方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。