當前位置: 首頁>>代碼示例>>Python>>正文


Python GenericLoader.__init__方法代碼示例

本文整理匯總了Python中app.io.load.GenericLoader.__init__方法的典型用法代碼示例。如果您正苦於以下問題:Python GenericLoader.__init__方法的具體用法?Python GenericLoader.__init__怎麽用?Python GenericLoader.__init__使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在app.io.load.GenericLoader的用法示例。


在下文中一共展示了GenericLoader.__init__方法的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: __init__

# 需要導入模塊: from app.io.load import GenericLoader [as 別名]
# 或者: from app.io.load.GenericLoader import __init__ [as 別名]
	def __init__(self, file, filename, match):
		GenericLoader.__init__(self, file, filename, match)
		if self.filename:
			self.directory = os.path.split(filename)[0]
		else:
			self.directory = ''
		self.page_layout = None
開發者ID:DDRBoxman,項目名稱:Spherebot-Host-GUI,代碼行數:9,代碼來源:svgloader.py

示例2: __init__

# 需要導入模塊: from app.io.load import GenericLoader [as 別名]
# 或者: from app.io.load.GenericLoader import __init__ [as 別名]
	def __init__(self, file, filename, match):
		GenericLoader.__init__(self, file, filename, match)
		self.file = file
		self.curstyle = Style()
		self.verbosity = 0
		self.gdiobjects = []
		self.dcstack = []
		self.curpoint = Point(0, 0)
開發者ID:DDRBoxman,項目名稱:Spherebot-Host-GUI,代碼行數:10,代碼來源:wmfloader.py

示例3: __init__

# 需要導入模塊: from app.io.load import GenericLoader [as 別名]
# 或者: from app.io.load.GenericLoader import __init__ [as 別名]
	def __init__(self, file, filename, match):
		GenericLoader.__init__(self, file, filename, match)
		self.fix_tile = None
		self.fix_clip = 0
		self.fix_lens = ()
		self.object = None
		self.filename =filename
		self.verbosity=False
		self.info = None
		self.file=file
開發者ID:dlajarretie,項目名稱:uniconvertor,代碼行數:12,代碼來源:cdrparser.py

示例4: __init__

# 需要導入模塊: from app.io.load import GenericLoader [as 別名]
# 或者: from app.io.load.GenericLoader import __init__ [as 別名]
	def __init__(self, file, filename, match):
		GenericLoader.__init__(self, file, filename, match)
		self.file = file
		self.verbosity = 15
		self.IntF = (self.i8, self.i16, self.i24, self.i32)
		self.CardF = (self.u8, self.u16, self.u24, self.u32)
		self.FloatF = (self.flp32, self.flp64)
		self.FixedF = (self.fip32, self.fip64)
		self.RealF = self.FixedF + self.FloatF
		self.VDCF = (self.IntF, self.RealF)
開發者ID:dlajarretie,項目名稱:uniconvertor,代碼行數:12,代碼來源:cgmloader.py

示例5: __init__

# 需要導入模塊: from app.io.load import GenericLoader [as 別名]
# 或者: from app.io.load.GenericLoader import __init__ [as 別名]
 def __init__(self, file, filename, match):
     GenericLoader.__init__(self, file, filename, match)
     if atoi(match.group("minor")) > 2:
         self.add_message(_("The file was created by a newer version" " of sK1, there might be inaccuracies."))
     if self.filename:
         self.directory = os.path.split(filename)[0]
     else:
         self.directory = ""
     self.style_dict = {}
     self.id_dict = {}
     self.page_layout = None
     self.pattern = None
     self.gradient = None
     self.arrow1 = None
     self.arrow2 = None
     self.font = None
     self.font_size = 1.0
     self.color_cache = {}
開發者ID:htgoebel,項目名稱:uniconvertor,代碼行數:20,代碼來源:sk1loader.py

示例6: __init__

# 需要導入模塊: from app.io.load import GenericLoader [as 別名]
# 或者: from app.io.load.GenericLoader import __init__ [as 別名]
	def __init__(self, file, filename, match):
		GenericLoader.__init__(self, file, filename, match)
		
		self.file = file
		
		self.DWGCODEPAGE = 'latin1'
		self.unit_to_pt = 2.83464566929
		self.dynamic_style_dict = {}
		self.style_dict = {}
		self.ltype_dict = {'CONTINUOUS': { '2': 'CONTINUOUS', # Linetype name
											'3': 'Solid line', # Descriptive text for linetype
											'49': [], # Dash, dot or space length 
													  #(one entry per element)
										  }
						  }
		self.layer_dict = {'0': { '2': '0', # Layer name
								  '6': 'CONTINUOUS', #Linetype name
								  '62': 0, # Color number
								  '370': None, #Line weight
								  }
							}
		self.block_dict = {}
		self.stack = []
		self.stack_trafo = []
		self.default_layer = '0'
		self.default_style = 'STANDARD'
		self.default_block = None
		self.default_line_width = 30
		self.EXTMIN = (1e+20, 1e+20)
		self.EXTMAX = (-1e+20, -1e+20)
		self.PEXTMIN = (1e+20, 1e+20)
		self.PEXTMAX = (-1e+20, -1e+20)
		
		self.general_param = {
				'8': self.default_layer, # Layer name
				'6': 'BYLAYER', # Linetype name 
				'62': 256, # Color number 
				'48': 1.0, # Linetype scale 
				#'60': 0, # Object visibility. If 1 Invisible
				}
		
		self.curstyle = Style()
		self.update_trafo()
開發者ID:dlajarretie,項目名稱:uniconvertor,代碼行數:45,代碼來源:dxfloader.py

示例7: __init__

# 需要導入模塊: from app.io.load import GenericLoader [as 別名]
# 或者: from app.io.load.GenericLoader import __init__ [as 別名]
	def __init__(self, file, filename, match,
					treat_toplevel_groups_as_layers = 1,
					flatten_groups = 1):
		GenericLoader.__init__(self, file, filename, match)
		self.line_color = StandardColors.black
		self.fill_color = StandardColors.black
		self.line_width = 0.0
		self.line_join  = const.JoinMiter
		self.line_cap  = const.CapButt
		self.line_dashes = ()
		self.cur_x = self.cur_y = 0.0
		self.treat_toplevel_groups_as_layers = treat_toplevel_groups_as_layers
		self.flatten_groups = flatten_groups
		self.guess_continuity = 1
		self.path = CreatePath()
		self.compound_path = None # If compound_path is None, we're
									# outside of a compound path,
									# otherwise it's a possibly empty list
									# of paths
		self.compound_render = ''
		self.stack = []
		self.gradients = {}
		self.in_gradient_instance = 0
		self.gradient_geo = None # set to a true value after Bg, and set
									# to false by make_gradient_pattern
		self.gradient_rect = None
		self.in_palette = 0
		self.in_text = 0
		self.ignore_fill = 0
		self.text_type = 0      # 0: point text, 1: area text, 2 = path text
		self.text_render = 0    # filled
		self.text_font = None
		self.text_size = 12

		# Test alignment. Possible values: 0: left, 1: center, 2:right,
		# 3: justified, 4: justified including last line
		self.text_align = 0

		self.text_string = []
		self.standard_encoding = encoding.adobe_standard
		self.font_map = {}
		self.guides = []
		self.format_version = 0.0
開發者ID:,項目名稱:,代碼行數:45,代碼來源:

示例8: __init__

# 需要導入模塊: from app.io.load import GenericLoader [as 別名]
# 或者: from app.io.load.GenericLoader import __init__ [as 別名]
	def __init__(self, file, filename, match):
		GenericLoader.__init__(self, file, filename, match)
		self.basename, self.ext = os.path.splitext(filename)
開發者ID:DDRBoxman,項目名稱:Spherebot-Host-GUI,代碼行數:5,代碼來源:stitchloader.py

示例9: __init__

# 需要導入模塊: from app.io.load import GenericLoader [as 別名]
# 或者: from app.io.load.GenericLoader import __init__ [as 別名]
	def __init__(self, file, filename, match):

		GenericLoader.__init__(self, file, filename, match)
開發者ID:kindlychung,項目名稱:sk1,代碼行數:5,代碼來源:drawinput.py

示例10: __init__

# 需要導入模塊: from app.io.load import GenericLoader [as 別名]
# 或者: from app.io.load.GenericLoader import __init__ [as 別名]
 def __init__(self, file, filename, match):
     GenericLoader.__init__(self, file, filename, match)
     self.file = file
     self.initialize()
開發者ID:moljac,項目名稱:HolisticWare.Productivity.Xamarin.Mobile.Artwork,代碼行數:6,代碼來源:pltloader.py


注:本文中的app.io.load.GenericLoader.__init__方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。