Best Python code snippet using playwright-python
mesa.gyp
Source: mesa.gyp
1# Copyright (c) 2012 The Chromium Authors. All rights reserved.2# Use of this source code is governed by a BSD-style license that can be3# found in the LICENSE file.4{5 'variables': {6 # Disable warnings as errors for mesa until they're fixed or disabled.7 # http://crbug.com/1438778 'win_third_party_warn_as_error': 'false',9 },10 'conditions': [11 ['use_system_mesa==0', {12 'target_defaults': {13 'conditions': [14 ['OS!="win"', {15 'defines': [16 # For talloc17 'HAVE_VA_COPY',18 ],19 }],20 ['OS!="mac"', {21 'defines': [22 # For talloc23 'HAVE_STRNLEN',24 ],25 }],26 ['os_posix == 1 and OS != "mac" and OS != "android"', {27 'cflags': [28 '-fPIC',29 ],30 }],31 ],32 'defines': [33 # For Mesa34 'MAPI_GLAPI_CURRENT',35 ],36 },37 'targets': [38 {39 'target_name': 'mesa_headers',40 'type': 'none',41 'direct_dependent_settings': {42 'include_dirs': [43 'MesaLib/include',44 ],45 },46 },47 {48 'target_name': 'mesa',49 'type': 'static_library',50 'include_dirs': [51 '../talloc',52 'MesaLib/src/glsl',53 'MesaLib/src/mapi',54 'MesaLib/src/mesa',55 'MesaLib/src/mesa/main',56 ],57 'dependencies': [58 'mesa_headers',59 ],60 'sources': [61 '../talloc/talloc.c',62 'MesaLib/src/glsl/ast.h',63 'MesaLib/src/glsl/ast_expr.cpp',64 'MesaLib/src/glsl/ast_function.cpp',65 'MesaLib/src/glsl/ast_to_hir.cpp',66 'MesaLib/src/glsl/ast_type.cpp',67 'MesaLib/src/glsl/builtin_function.cpp',68 'MesaLib/src/glsl/builtin_types.h',69 'MesaLib/src/glsl/builtin_variables.h',70 'MesaLib/src/glsl/glsl_lexer.cpp',71 'MesaLib/src/glsl/glsl_parser.cpp',72 'MesaLib/src/glsl/glsl_parser.h',73 'MesaLib/src/glsl/glsl_parser_extras.cpp',74 'MesaLib/src/glsl/glsl_parser_extras.h',75 'MesaLib/src/glsl/glsl_symbol_table.cpp',76 'MesaLib/src/glsl/glsl_symbol_table.h',77 'MesaLib/src/glsl/glsl_types.cpp',78 'MesaLib/src/glsl/glsl_types.h',79 'MesaLib/src/glsl/hir_field_selection.cpp',80 'MesaLib/src/glsl/ir.cpp',81 'MesaLib/src/glsl/ir.h',82 'MesaLib/src/glsl/ir_algebraic.cpp',83 'MesaLib/src/glsl/ir_basic_block.cpp',84 'MesaLib/src/glsl/ir_basic_block.h',85 'MesaLib/src/glsl/ir_clone.cpp',86 'MesaLib/src/glsl/ir_constant_expression.cpp',87 'MesaLib/src/glsl/ir_constant_folding.cpp',88 'MesaLib/src/glsl/ir_constant_propagation.cpp',89 'MesaLib/src/glsl/ir_constant_variable.cpp',90 'MesaLib/src/glsl/ir_copy_propagation.cpp',91 'MesaLib/src/glsl/ir_dead_code.cpp',92 'MesaLib/src/glsl/ir_dead_code_local.cpp',93 'MesaLib/src/glsl/ir_dead_functions.cpp',94 'MesaLib/src/glsl/ir_div_to_mul_rcp.cpp',95 'MesaLib/src/glsl/ir_explog_to_explog2.cpp',96 'MesaLib/src/glsl/ir_expression_flattening.cpp',97 'MesaLib/src/glsl/ir_expression_flattening.h',98 'MesaLib/src/glsl/ir_function.cpp',99 'MesaLib/src/glsl/ir_function_can_inline.cpp',100 'MesaLib/src/glsl/ir_function_inlining.cpp',101 'MesaLib/src/glsl/ir_function_inlining.h',102 'MesaLib/src/glsl/ir_hierarchical_visitor.cpp',103 'MesaLib/src/glsl/ir_hierarchical_visitor.h',104 'MesaLib/src/glsl/ir_hv_accept.cpp',105 'MesaLib/src/glsl/ir_if_simplification.cpp',106 'MesaLib/src/glsl/ir_if_to_cond_assign.cpp',107 'MesaLib/src/glsl/ir_import_prototypes.cpp',108 'MesaLib/src/glsl/ir_lower_jumps.cpp',109 'MesaLib/src/glsl/ir_mat_op_to_vec.cpp',110 'MesaLib/src/glsl/ir_mod_to_fract.cpp',111 'MesaLib/src/glsl/ir_noop_swizzle.cpp',112 'MesaLib/src/glsl/ir_optimization.h',113 'MesaLib/src/glsl/ir_print_visitor.cpp',114 'MesaLib/src/glsl/ir_print_visitor.h',115 'MesaLib/src/glsl/ir_reader.cpp',116 'MesaLib/src/glsl/ir_reader.h',117 'MesaLib/src/glsl/ir_rvalue_visitor.cpp',118 'MesaLib/src/glsl/ir_rvalue_visitor.h',119 'MesaLib/src/glsl/ir_set_program_inouts.cpp',120 'MesaLib/src/glsl/ir_structure_splitting.cpp',121 'MesaLib/src/glsl/ir_sub_to_add_neg.cpp',122 'MesaLib/src/glsl/ir_swizzle_swizzle.cpp',123 'MesaLib/src/glsl/ir_tree_grafting.cpp',124 'MesaLib/src/glsl/ir_validate.cpp',125 'MesaLib/src/glsl/ir_variable.cpp',126 'MesaLib/src/glsl/ir_variable_refcount.cpp',127 'MesaLib/src/glsl/ir_variable_refcount.h',128 'MesaLib/src/glsl/ir_vec_index_to_cond_assign.cpp',129 'MesaLib/src/glsl/ir_vec_index_to_swizzle.cpp',130 'MesaLib/src/glsl/ir_visitor.h',131 'MesaLib/src/glsl/link_functions.cpp',132 'MesaLib/src/glsl/linker.cpp',133 'MesaLib/src/glsl/linker.h',134 'MesaLib/src/glsl/list.h',135 'MesaLib/src/glsl/loop_analysis.cpp',136 'MesaLib/src/glsl/loop_analysis.h',137 'MesaLib/src/glsl/loop_controls.cpp',138 'MesaLib/src/glsl/loop_unroll.cpp',139 'MesaLib/src/glsl/lower_noise.cpp',140 'MesaLib/src/glsl/lower_variable_index_to_cond_assign.cpp',141 'MesaLib/src/glsl/opt_redundant_jumps.cpp',142 'MesaLib/src/glsl/program.h',143 'MesaLib/src/glsl/s_expression.cpp',144 'MesaLib/src/glsl/s_expression.h',145 'MesaLib/src/glsl/safe_strcmp.c',146 'MesaLib/src/glsl/safe_strcmp.h',147 'MesaLib/src/glsl/glcpp/glcpp-lex.c',148 'MesaLib/src/glsl/glcpp/glcpp-parse.c',149 'MesaLib/src/glsl/glcpp/glcpp-parse.h',150 'MesaLib/src/glsl/glcpp/pp.c',151 'MesaLib/src/mapi/glapi/glapi.h',152 'MesaLib/src/mapi/glapi/glapi_dispatch.c',153 'MesaLib/src/mapi/glapi/glapi_entrypoint.c',154 'MesaLib/src/mapi/glapi/glapi_getproc.c',155 'MesaLib/src/mapi/glapi/glapi_nop.c',156 'MesaLib/src/mapi/glapi/glapi_priv.h',157 'MesaLib/src/mapi/glapi/glapidispatch.h',158 'MesaLib/src/mapi/glapi/glapioffsets.h',159 'MesaLib/src/mapi/glapi/glapitable.h',160 'MesaLib/src/mapi/glapi/glapitemp.h',161 'MesaLib/src/mapi/glapi/glprocs.h',162 'MesaLib/src/mapi/mapi/u_compiler.h',163 'MesaLib/src/mapi/mapi/u_current.c',164 'MesaLib/src/mapi/mapi/u_current.h',165 'MesaLib/src/mapi/mapi/u_execmem.c',166 'MesaLib/src/mapi/mapi/u_execmem.h',167 'MesaLib/src/mapi/mapi/u_macros.h',168 'MesaLib/src/mapi/mapi/u_thread.c',169 'MesaLib/src/mapi/mapi/u_thread.h',170 'MesaLib/src/mesa/main/accum.c',171 'MesaLib/src/mesa/main/accum.h',172 'MesaLib/src/mesa/main/api_arrayelt.c',173 'MesaLib/src/mesa/main/api_arrayelt.h',174 'MesaLib/src/mesa/main/api_exec.c',175 'MesaLib/src/mesa/main/api_exec.h',176 'MesaLib/src/mesa/main/api_loopback.c',177 'MesaLib/src/mesa/main/api_loopback.h',178 'MesaLib/src/mesa/main/api_noop.c',179 'MesaLib/src/mesa/main/api_noop.h',180 'MesaLib/src/mesa/main/api_validate.c',181 'MesaLib/src/mesa/main/api_validate.h',182 'MesaLib/src/mesa/main/arbprogram.c',183 'MesaLib/src/mesa/main/arbprogram.h',184 'MesaLib/src/mesa/main/arrayobj.c',185 'MesaLib/src/mesa/main/arrayobj.h',186 'MesaLib/src/mesa/main/atifragshader.c',187 'MesaLib/src/mesa/main/atifragshader.h',188 'MesaLib/src/mesa/main/attrib.c',189 'MesaLib/src/mesa/main/attrib.h',190 'MesaLib/src/mesa/main/bitset.h',191 'MesaLib/src/mesa/main/blend.c',192 'MesaLib/src/mesa/main/blend.h',193 'MesaLib/src/mesa/main/bufferobj.c',194 'MesaLib/src/mesa/main/bufferobj.h',195 'MesaLib/src/mesa/main/buffers.c',196 'MesaLib/src/mesa/main/buffers.h',197 'MesaLib/src/mesa/main/clear.c',198 'MesaLib/src/mesa/main/clear.h',199 'MesaLib/src/mesa/main/clip.c',200 'MesaLib/src/mesa/main/clip.h',201 'MesaLib/src/mesa/main/colormac.h',202 'MesaLib/src/mesa/main/colortab.c',203 'MesaLib/src/mesa/main/colortab.h',204 'MesaLib/src/mesa/main/compiler.h',205 'MesaLib/src/mesa/main/condrender.c',206 'MesaLib/src/mesa/main/condrender.h',207 'MesaLib/src/mesa/main/config.h',208 'MesaLib/src/mesa/main/context.c',209 'MesaLib/src/mesa/main/context.h',210 'MesaLib/src/mesa/main/convolve.c',211 'MesaLib/src/mesa/main/convolve.h',212 'MesaLib/src/mesa/main/core.h',213 'MesaLib/src/mesa/main/cpuinfo.c',214 'MesaLib/src/mesa/main/cpuinfo.h',215 'MesaLib/src/mesa/main/dd.h',216 'MesaLib/src/mesa/main/debug.c',217 'MesaLib/src/mesa/main/debug.h',218 'MesaLib/src/mesa/main/depth.c',219 'MesaLib/src/mesa/main/depth.h',220 'MesaLib/src/mesa/main/depthstencil.c',221 'MesaLib/src/mesa/main/depthstencil.h',222 'MesaLib/src/mesa/main/dispatch.h',223 'MesaLib/src/mesa/main/dlist.c',224 'MesaLib/src/mesa/main/dlist.h',225 'MesaLib/src/mesa/main/dlopen.c',226 'MesaLib/src/mesa/main/dlopen.h',227 'MesaLib/src/mesa/main/drawpix.c',228 'MesaLib/src/mesa/main/drawpix.h',229 'MesaLib/src/mesa/main/drawtex.c',230 'MesaLib/src/mesa/main/drawtex.h',231 'MesaLib/src/mesa/main/enable.c',232 'MesaLib/src/mesa/main/enable.h',233 'MesaLib/src/mesa/main/enums.c',234 'MesaLib/src/mesa/main/enums.h',235 'MesaLib/src/mesa/main/eval.c',236 'MesaLib/src/mesa/main/eval.h',237 'MesaLib/src/mesa/main/execmem.c',238 'MesaLib/src/mesa/main/extensions.c',239 'MesaLib/src/mesa/main/extensions.h',240 'MesaLib/src/mesa/main/fbobject.c',241 'MesaLib/src/mesa/main/fbobject.h',242 'MesaLib/src/mesa/main/feedback.c',243 'MesaLib/src/mesa/main/feedback.h',244 'MesaLib/src/mesa/main/ffvertex_prog.c',245 'MesaLib/src/mesa/main/ffvertex_prog.h',246 'MesaLib/src/mesa/main/fog.c',247 'MesaLib/src/mesa/main/fog.h',248 'MesaLib/src/mesa/main/formats.c',249 'MesaLib/src/mesa/main/formats.h',250 'MesaLib/src/mesa/main/framebuffer.c',251 'MesaLib/src/mesa/main/framebuffer.h',252 'MesaLib/src/mesa/main/get.c',253 'MesaLib/src/mesa/main/get.h',254 'MesaLib/src/mesa/main/getstring.c',255 'MesaLib/src/mesa/main/glheader.h',256 'MesaLib/src/mesa/main/hash.c',257 'MesaLib/src/mesa/main/hash.h',258 'MesaLib/src/mesa/main/hint.c',259 'MesaLib/src/mesa/main/hint.h',260 'MesaLib/src/mesa/main/histogram.c',261 'MesaLib/src/mesa/main/histogram.h',262 'MesaLib/src/mesa/main/image.c',263 'MesaLib/src/mesa/main/image.h',264 'MesaLib/src/mesa/main/imports.c',265 'MesaLib/src/mesa/main/imports.h',266 'MesaLib/src/mesa/main/light.c',267 'MesaLib/src/mesa/main/light.h',268 'MesaLib/src/mesa/main/lines.c',269 'MesaLib/src/mesa/main/lines.h',270 'MesaLib/src/mesa/main/macros.h',271 'MesaLib/src/mesa/main/matrix.c',272 'MesaLib/src/mesa/main/matrix.h',273 'MesaLib/src/mesa/main/mfeatures.h',274 'MesaLib/src/mesa/main/mipmap.c',275 'MesaLib/src/mesa/main/mipmap.h',276 'MesaLib/src/mesa/main/mm.c',277 'MesaLib/src/mesa/main/mm.h',278 'MesaLib/src/mesa/main/mtypes.h',279 'MesaLib/src/mesa/main/multisample.c',280 'MesaLib/src/mesa/main/multisample.h',281 'MesaLib/src/mesa/main/nvprogram.c',282 'MesaLib/src/mesa/main/nvprogram.h',283 'MesaLib/src/mesa/main/pixel.c',284 'MesaLib/src/mesa/main/pixel.h',285 'MesaLib/src/mesa/main/pixelstore.c',286 'MesaLib/src/mesa/main/pixelstore.h',287 'MesaLib/src/mesa/main/points.c',288 'MesaLib/src/mesa/main/points.h',289 'MesaLib/src/mesa/main/polygon.c',290 'MesaLib/src/mesa/main/polygon.h',291 'MesaLib/src/mesa/main/queryobj.c',292 'MesaLib/src/mesa/main/queryobj.h',293 'MesaLib/src/mesa/main/rastpos.c',294 'MesaLib/src/mesa/main/rastpos.h',295 'MesaLib/src/mesa/main/readpix.c',296 'MesaLib/src/mesa/main/readpix.h',297 'MesaLib/src/mesa/main/remap.c',298 'MesaLib/src/mesa/main/remap.h',299 'MesaLib/src/mesa/main/remap_helper.h',300 'MesaLib/src/mesa/main/renderbuffer.c',301 'MesaLib/src/mesa/main/renderbuffer.h',302 'MesaLib/src/mesa/main/scissor.c',303 'MesaLib/src/mesa/main/scissor.h',304 'MesaLib/src/mesa/main/shaderapi.c',305 'MesaLib/src/mesa/main/shaderapi.h',306 'MesaLib/src/mesa/main/shaderobj.c',307 'MesaLib/src/mesa/main/shaderobj.h',308 'MesaLib/src/mesa/main/shared.c',309 'MesaLib/src/mesa/main/shared.h',310 'MesaLib/src/mesa/main/simple_list.h',311 'MesaLib/src/mesa/main/state.c',312 'MesaLib/src/mesa/main/state.h',313 'MesaLib/src/mesa/main/stencil.c',314 'MesaLib/src/mesa/main/stencil.h',315 'MesaLib/src/mesa/main/syncobj.c',316 'MesaLib/src/mesa/main/syncobj.h',317 'MesaLib/src/mesa/main/texcompress.c',318 'MesaLib/src/mesa/main/texcompress.h',319 'MesaLib/src/mesa/main/texcompress_fxt1.c',320 'MesaLib/src/mesa/main/texcompress_fxt1.h',321 'MesaLib/src/mesa/main/texcompress_s3tc.c',322 'MesaLib/src/mesa/main/texcompress_s3tc.h',323 'MesaLib/src/mesa/main/texenv.c',324 'MesaLib/src/mesa/main/texenv.h',325 'MesaLib/src/mesa/main/texenvprogram.c',326 'MesaLib/src/mesa/main/texenvprogram.h',327 'MesaLib/src/mesa/main/texfetch.c',328 'MesaLib/src/mesa/main/texfetch.h',329 'MesaLib/src/mesa/main/texfetch_tmp.h',330 'MesaLib/src/mesa/main/texformat.c',331 'MesaLib/src/mesa/main/texformat.h',332 'MesaLib/src/mesa/main/texgen.c',333 'MesaLib/src/mesa/main/texgen.h',334 'MesaLib/src/mesa/main/texgetimage.c',335 'MesaLib/src/mesa/main/texgetimage.h',336 'MesaLib/src/mesa/main/teximage.c',337 'MesaLib/src/mesa/main/teximage.h',338 'MesaLib/src/mesa/main/texobj.c',339 'MesaLib/src/mesa/main/texobj.h',340 'MesaLib/src/mesa/main/texpal.c',341 'MesaLib/src/mesa/main/texpal.h',342 'MesaLib/src/mesa/main/texparam.c',343 'MesaLib/src/mesa/main/texparam.h',344 'MesaLib/src/mesa/main/texrender.c',345 'MesaLib/src/mesa/main/texrender.h',346 'MesaLib/src/mesa/main/texstate.c',347 'MesaLib/src/mesa/main/texstate.h',348 'MesaLib/src/mesa/main/texstore.c',349 'MesaLib/src/mesa/main/texstore.h',350 'MesaLib/src/mesa/main/transformfeedback.c',351 'MesaLib/src/mesa/main/transformfeedback.h',352 'MesaLib/src/mesa/main/uniforms.c',353 'MesaLib/src/mesa/main/uniforms.h',354 'MesaLib/src/mesa/main/varray.c',355 'MesaLib/src/mesa/main/varray.h',356 'MesaLib/src/mesa/main/version.c',357 'MesaLib/src/mesa/main/version.h',358 'MesaLib/src/mesa/main/viewport.c',359 'MesaLib/src/mesa/main/viewport.h',360 'MesaLib/src/mesa/main/vtxfmt.c',361 'MesaLib/src/mesa/main/vtxfmt.h',362 'MesaLib/src/mesa/main/vtxfmt_tmp.h',363 'MesaLib/src/mesa/math/m_clip_tmp.h',364 'MesaLib/src/mesa/math/m_copy_tmp.h',365 'MesaLib/src/mesa/math/m_debug.h',366 'MesaLib/src/mesa/math/m_debug_clip.c',367 'MesaLib/src/mesa/math/m_debug_norm.c',368 'MesaLib/src/mesa/math/m_debug_util.h',369 'MesaLib/src/mesa/math/m_debug_xform.c',370 'MesaLib/src/mesa/math/m_dotprod_tmp.h',371 'MesaLib/src/mesa/math/m_eval.c',372 'MesaLib/src/mesa/math/m_eval.h',373 'MesaLib/src/mesa/math/m_matrix.c',374 'MesaLib/src/mesa/math/m_matrix.h',375 'MesaLib/src/mesa/math/m_norm_tmp.h',376 'MesaLib/src/mesa/math/m_trans_tmp.h',377 'MesaLib/src/mesa/math/m_translate.c',378 'MesaLib/src/mesa/math/m_translate.h',379 'MesaLib/src/mesa/math/m_vector.c',380 'MesaLib/src/mesa/math/m_vector.h',381 'MesaLib/src/mesa/math/m_xform.c',382 'MesaLib/src/mesa/math/m_xform.h',383 'MesaLib/src/mesa/math/m_xform_tmp.h',384 'MesaLib/src/mesa/program/arbprogparse.c',385 'MesaLib/src/mesa/program/arbprogparse.h',386 'MesaLib/src/mesa/program/hash_table.c',387 'MesaLib/src/mesa/program/hash_table.h',388 'MesaLib/src/mesa/program/ir_to_mesa.cpp',389 'MesaLib/src/mesa/program/ir_to_mesa.h',390 'MesaLib/src/mesa/program/lex.yy.c',391 'MesaLib/src/mesa/program/nvfragparse.c',392 'MesaLib/src/mesa/program/nvfragparse.h',393 'MesaLib/src/mesa/program/nvvertparse.c',394 'MesaLib/src/mesa/program/nvvertparse.h',395 'MesaLib/src/mesa/program/prog_cache.c',396 'MesaLib/src/mesa/program/prog_cache.h',397 'MesaLib/src/mesa/program/prog_execute.c',398 'MesaLib/src/mesa/program/prog_execute.h',399 'MesaLib/src/mesa/program/prog_instruction.c',400 'MesaLib/src/mesa/program/prog_instruction.h',401 'MesaLib/src/mesa/program/prog_noise.c',402 'MesaLib/src/mesa/program/prog_noise.h',403 'MesaLib/src/mesa/program/prog_optimize.c',404 'MesaLib/src/mesa/program/prog_optimize.h',405 'MesaLib/src/mesa/program/prog_parameter.c',406 'MesaLib/src/mesa/program/prog_parameter.h',407 'MesaLib/src/mesa/program/prog_parameter_layout.c',408 'MesaLib/src/mesa/program/prog_parameter_layout.h',409 'MesaLib/src/mesa/program/prog_print.c',410 'MesaLib/src/mesa/program/prog_print.h',411 'MesaLib/src/mesa/program/prog_statevars.c',412 'MesaLib/src/mesa/program/prog_statevars.h',413 'MesaLib/src/mesa/program/prog_uniform.c',414 'MesaLib/src/mesa/program/prog_uniform.h',415 'MesaLib/src/mesa/program/program.c',416 'MesaLib/src/mesa/program/program.h',417 'MesaLib/src/mesa/program/program_parse.tab.c',418 'MesaLib/src/mesa/program/program_parse.tab.h',419 'MesaLib/src/mesa/program/program_parse_extra.c',420 'MesaLib/src/mesa/program/program_parser.h',421 'MesaLib/src/mesa/program/programopt.c',422 'MesaLib/src/mesa/program/programopt.h',423 'MesaLib/src/mesa/program/symbol_table.c',424 'MesaLib/src/mesa/program/symbol_table.h',425 'MesaLib/src/mesa/swrast/s_aaline.c',426 'MesaLib/src/mesa/swrast/s_aaline.h',427 'MesaLib/src/mesa/swrast/s_aalinetemp.h',428 'MesaLib/src/mesa/swrast/s_aatriangle.c',429 'MesaLib/src/mesa/swrast/s_aatriangle.h',430 'MesaLib/src/mesa/swrast/s_aatritemp.h',431 'MesaLib/src/mesa/swrast/s_accum.c',432 'MesaLib/src/mesa/swrast/s_accum.h',433 'MesaLib/src/mesa/swrast/s_alpha.c',434 'MesaLib/src/mesa/swrast/s_alpha.h',435 'MesaLib/src/mesa/swrast/s_atifragshader.c',436 'MesaLib/src/mesa/swrast/s_atifragshader.h',437 'MesaLib/src/mesa/swrast/s_bitmap.c',438 'MesaLib/src/mesa/swrast/s_blend.c',439 'MesaLib/src/mesa/swrast/s_blend.h',440 'MesaLib/src/mesa/swrast/s_blit.c',441 'MesaLib/src/mesa/swrast/s_clear.c',442 'MesaLib/src/mesa/swrast/s_context.c',443 'MesaLib/src/mesa/swrast/s_context.h',444 'MesaLib/src/mesa/swrast/s_copypix.c',445 'MesaLib/src/mesa/swrast/s_depth.c',446 'MesaLib/src/mesa/swrast/s_depth.h',447 'MesaLib/src/mesa/swrast/s_drawpix.c',448 'MesaLib/src/mesa/swrast/s_feedback.c',449 'MesaLib/src/mesa/swrast/s_feedback.h',450 'MesaLib/src/mesa/swrast/s_fog.c',451 'MesaLib/src/mesa/swrast/s_fog.h',452 'MesaLib/src/mesa/swrast/s_fragprog.c',453 'MesaLib/src/mesa/swrast/s_fragprog.h',454 'MesaLib/src/mesa/swrast/s_lines.c',455 'MesaLib/src/mesa/swrast/s_lines.h',456 'MesaLib/src/mesa/swrast/s_linetemp.h',457 'MesaLib/src/mesa/swrast/s_logic.c',458 'MesaLib/src/mesa/swrast/s_logic.h',459 'MesaLib/src/mesa/swrast/s_masking.c',460 'MesaLib/src/mesa/swrast/s_masking.h',461 'MesaLib/src/mesa/swrast/s_points.c',462 'MesaLib/src/mesa/swrast/s_points.h',463 'MesaLib/src/mesa/swrast/s_readpix.c',464 'MesaLib/src/mesa/swrast/s_span.c',465 'MesaLib/src/mesa/swrast/s_span.h',466 'MesaLib/src/mesa/swrast/s_spantemp.h',467 'MesaLib/src/mesa/swrast/s_stencil.c',468 'MesaLib/src/mesa/swrast/s_stencil.h',469 'MesaLib/src/mesa/swrast/s_texcombine.c',470 'MesaLib/src/mesa/swrast/s_texcombine.h',471 'MesaLib/src/mesa/swrast/s_texfilter.c',472 'MesaLib/src/mesa/swrast/s_texfilter.h',473 'MesaLib/src/mesa/swrast/s_triangle.c',474 'MesaLib/src/mesa/swrast/s_triangle.h',475 'MesaLib/src/mesa/swrast/s_trispan.h',476 'MesaLib/src/mesa/swrast/s_tritemp.h',477 'MesaLib/src/mesa/swrast/s_zoom.c',478 'MesaLib/src/mesa/swrast/s_zoom.h',479 'MesaLib/src/mesa/swrast/swrast.h',480 'MesaLib/src/mesa/swrast_setup/ss_context.c',481 'MesaLib/src/mesa/swrast_setup/ss_context.h',482 'MesaLib/src/mesa/swrast_setup/ss_triangle.c',483 'MesaLib/src/mesa/swrast_setup/ss_triangle.h',484 'MesaLib/src/mesa/swrast_setup/ss_tritmp.h',485 'MesaLib/src/mesa/swrast_setup/ss_vb.h',486 'MesaLib/src/mesa/swrast_setup/swrast_setup.h',487 'MesaLib/src/mesa/tnl/t_context.c',488 'MesaLib/src/mesa/tnl/t_context.h',489 'MesaLib/src/mesa/tnl/t_draw.c',490 'MesaLib/src/mesa/tnl/t_pipeline.c',491 'MesaLib/src/mesa/tnl/t_pipeline.h',492 'MesaLib/src/mesa/tnl/t_rasterpos.c',493 'MesaLib/src/mesa/tnl/t_vb_cliptmp.h',494 'MesaLib/src/mesa/tnl/t_vb_cull.c',495 'MesaLib/src/mesa/tnl/t_vb_fog.c',496 'MesaLib/src/mesa/tnl/t_vb_light.c',497 'MesaLib/src/mesa/tnl/t_vb_lighttmp.h',498 'MesaLib/src/mesa/tnl/t_vb_normals.c',499 'MesaLib/src/mesa/tnl/t_vb_points.c',500 'MesaLib/src/mesa/tnl/t_vb_program.c',501 'MesaLib/src/mesa/tnl/t_vb_render.c',502 'MesaLib/src/mesa/tnl/t_vb_rendertmp.h',503 'MesaLib/src/mesa/tnl/t_vb_texgen.c',504 'MesaLib/src/mesa/tnl/t_vb_texmat.c',505 'MesaLib/src/mesa/tnl/t_vb_vertex.c',506 'MesaLib/src/mesa/tnl/t_vertex.c',507 'MesaLib/src/mesa/tnl/t_vertex.h',508 'MesaLib/src/mesa/tnl/t_vertex_generic.c',509 'MesaLib/src/mesa/tnl/t_vertex_sse.c',510 'MesaLib/src/mesa/tnl/t_vp_build.c',511 'MesaLib/src/mesa/tnl/t_vp_build.h',512 'MesaLib/src/mesa/tnl/tnl.h',513 'MesaLib/src/mesa/vbo/vbo.h',514 'MesaLib/src/mesa/vbo/vbo_attrib.h',515 'MesaLib/src/mesa/vbo/vbo_attrib_tmp.h',516 'MesaLib/src/mesa/vbo/vbo_context.c',517 'MesaLib/src/mesa/vbo/vbo_context.h',518 'MesaLib/src/mesa/vbo/vbo_exec.c',519 'MesaLib/src/mesa/vbo/vbo_exec.h',520 'MesaLib/src/mesa/vbo/vbo_exec_api.c',521 'MesaLib/src/mesa/vbo/vbo_exec_array.c',522 'MesaLib/src/mesa/vbo/vbo_exec_draw.c',523 'MesaLib/src/mesa/vbo/vbo_exec_eval.c',524 'MesaLib/src/mesa/vbo/vbo_rebase.c',525 'MesaLib/src/mesa/vbo/vbo_save.c',526 'MesaLib/src/mesa/vbo/vbo_save.h',527 'MesaLib/src/mesa/vbo/vbo_save_api.c',528 'MesaLib/src/mesa/vbo/vbo_save_draw.c',529 'MesaLib/src/mesa/vbo/vbo_save_loopback.c',530 'MesaLib/src/mesa/vbo/vbo_split.c',531 'MesaLib/src/mesa/vbo/vbo_split.h',532 'MesaLib/src/mesa/vbo/vbo_split_copy.c',533 'MesaLib/src/mesa/vbo/vbo_split_inplace.c',534 ],535 'conditions': [536 ['clang == 1', {537 'xcode_settings': {538 'WARNING_CFLAGS': [539 # Several functions ignore the result of talloc_steal().540 '-Wno-unused-value',541 # texenvprogram.c converts '~0' to a bitfield, which causes clang542 # to warn that -1 is implicitly converted to 255.543 '-Wno-constant-conversion',544 ],545 },546 'cflags': [547 '-Wno-unused-value',548 '-Wno-constant-conversion',549 ],550 }],551 ],552 },553 # Building this target will hide the native OpenGL shared library and554 # replace it with a slow software renderer.555 {556 'target_name': 'osmesa',557 'type': 'loadable_module',558 'mac_bundle': 0,559 'dependencies': [560 'mesa_headers',561 'mesa',562 ],563 # Fixes link problems on Mac OS X with missing __cxa_pure_virtual.564 'conditions': [565 ['OS=="mac"', {566 'sources': [567 'MesaLib/src/mesa/drivers/osmesa/empty.cpp',568 ],569 }],570 ],571 'include_dirs': [572 'MesaLib/src/mapi',573 'MesaLib/src/mesa',574 'MesaLib/src/mesa/drivers',575 ],576 'sources': [577 'MesaLib/src/mesa/drivers/common/driverfuncs.c',578 'MesaLib/src/mesa/drivers/common/driverfuncs.h',579 'MesaLib/src/mesa/drivers/common/meta.c',580 'MesaLib/src/mesa/drivers/common/meta.h',581 'MesaLib/src/mesa/drivers/osmesa/osmesa.c',582 'MesaLib/src/mesa/drivers/osmesa/osmesa.def',583 ],584 },585 ],586 }, { # use_system_mesa==1587 'targets': [588 # TODO(phajdan.jr): Make this work, http://crbug.com/161389 .589 {590 'target_name': 'mesa_headers',591 'type': 'none',592 'variables': {593 'headers_root_path': 'MesaLib/include',594 # This list can easily be updated using the command below:595 # find third_party/mesa/MesaLib/include -iname '*.h' \596 # -printf "'%p',\n" | grep -v internal | sed -e \597 # 's|third_party/mesa/MesaLib/include/||' | sort -u598 'header_filenames': [599 'GL/glext.h',600 'GL/glfbdev.h',601 'GL/gl.h',602 'GL/gl_mangle.h',603 'GL/glu.h',604 'GL/glu_mangle.h',605 'GL/glxext.h',606 'GL/glx.h',607 'GL/glx_mangle.h',608 'GL/mesa_wgl.h',609 'GL/osmesa.h',610 'GL/vms_x_fix.h',611 'GL/wglext.h',612 'GL/wmesa.h',613 ],614 },615 'includes': [616 '../../build/shim_headers.gypi',617 ],618 },619 {620 'target_name': 'mesa',621 'type': 'none',622 },623 {624 'target_name': 'osmesa',625 'type': 'none',626 },627 ],628 }],629 ],...
design.py
Source: design.py
1# -*- coding: utf-8 -*-23# Form implementation generated from reading ui file 'design.ui'4#5# Created by: PyQt5 UI code generator 5.13.06#7# WARNING! All changes made in this file will be lost!8910from PyQt5 import QtCore, QtGui, QtWidgets111213class Ui_MainWindow(object):14 def setupUi(self, MainWindow):15 MainWindow.setObjectName("MainWindow")16 MainWindow.resize(887, 562)17 self.centralWidget = QtWidgets.QWidget(MainWindow)18 self.centralWidget.setObjectName("centralWidget")19 self.gridLayout = QtWidgets.QGridLayout(self.centralWidget)20 self.gridLayout.setContentsMargins(11, 11, 11, 11)21 self.gridLayout.setSpacing(6)22 self.gridLayout.setObjectName("gridLayout")23 self.verticalLayout = QtWidgets.QVBoxLayout()24 self.verticalLayout.setSpacing(6)25 self.verticalLayout.setObjectName("verticalLayout")26 self.cmbDirect = QtWidgets.QComboBox(self.centralWidget)27 self.cmbDirect.setObjectName("cmbDirect")28 self.cmbDirect.addItem("")29 self.cmbDirect.addItem("")30 self.verticalLayout.addWidget(self.cmbDirect)31 self.cmbWeight = QtWidgets.QComboBox(self.centralWidget)32 self.cmbWeight.setObjectName("cmbWeight")33 self.cmbWeight.addItem("")34 self.cmbWeight.addItem("")35 self.verticalLayout.addWidget(self.cmbWeight)36 self.textEdit = QtWidgets.QTextEdit(self.centralWidget)37 self.textEdit.setMaximumSize(QtCore.QSize(16777215, 50))38 self.textEdit.setFocusPolicy(QtCore.Qt.ClickFocus)39 self.textEdit.setObjectName("textEdit")40 self.verticalLayout.addWidget(self.textEdit)41 self.graphMatrix = QtWidgets.QTableView(self.centralWidget)42 self.graphMatrix.setMaximumSize(QtCore.QSize(16777204, 16777215))43 self.graphMatrix.setSizeIncrement(QtCore.QSize(0, 0))44 self.graphMatrix.setBaseSize(QtCore.QSize(7, 14))45 self.graphMatrix.setDragEnabled(False)46 self.graphMatrix.setDragDropMode(QtWidgets.QAbstractItemView.NoDragDrop)47 self.graphMatrix.setAlternatingRowColors(True)48 self.graphMatrix.setSelectionMode(QtWidgets.QAbstractItemView.ExtendedSelection)49 self.graphMatrix.setIconSize(QtCore.QSize(1, 0))50 self.graphMatrix.setTextElideMode(QtCore.Qt.ElideLeft)51 self.graphMatrix.setShowGrid(True)52 self.graphMatrix.setGridStyle(QtCore.Qt.SolidLine)53 self.graphMatrix.setSortingEnabled(False)54 self.graphMatrix.setObjectName("graphMatrix")55 self.verticalLayout.addWidget(self.graphMatrix)56 self.horizontalLayout_3 = QtWidgets.QHBoxLayout()57 self.horizontalLayout_3.setSpacing(6)58 self.horizontalLayout_3.setObjectName("horizontalLayout_3")59 spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)60 self.horizontalLayout_3.addItem(spacerItem)61 self.btnCancel = QtWidgets.QPushButton(self.centralWidget)62 self.btnCancel.setObjectName("btnCancel")63 self.horizontalLayout_3.addWidget(self.btnCancel)64 self.verticalLayout.addLayout(self.horizontalLayout_3)65 self.horizontalLayout_2 = QtWidgets.QHBoxLayout()66 self.horizontalLayout_2.setSpacing(6)67 self.horizontalLayout_2.setObjectName("horizontalLayout_2")68 spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)69 self.horizontalLayout_2.addItem(spacerItem1)70 self.btnNext = QtWidgets.QPushButton(self.centralWidget)71 self.btnNext.setObjectName("btnNext")72 self.horizontalLayout_2.addWidget(self.btnNext)73 self.verticalLayout.addLayout(self.horizontalLayout_2)74 self.gridLayout.addLayout(self.verticalLayout, 0, 1, 1, 1)75 self.tabWidget = QtWidgets.QTabWidget(self.centralWidget)76 self.tabWidget.setObjectName("tabWidget")77 self.tab = QtWidgets.QWidget()78 self.tab.setObjectName("tab")79 self.tabWidget.addTab(self.tab, "")80 self.tab_2 = QtWidgets.QWidget()81 self.tab_2.setObjectName("tab_2")82 self.tabWidget.addTab(self.tab_2, "")83 self.gridLayout.addWidget(self.tabWidget, 0, 0, 1, 1)84 MainWindow.setCentralWidget(self.centralWidget)85 self.mainToolBar = QtWidgets.QToolBar(MainWindow)86 self.mainToolBar.setObjectName("mainToolBar")87 MainWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.mainToolBar)88 self.statusBar = QtWidgets.QStatusBar(MainWindow)89 self.statusBar.setObjectName("statusBar")90 MainWindow.setStatusBar(self.statusBar)91 self.menuBar = QtWidgets.QMenuBar(MainWindow)92 self.menuBar.setGeometry(QtCore.QRect(0, 0, 887, 26))93 self.menuBar.setObjectName("menuBar")94 self.menuFile = QtWidgets.QMenu(self.menuBar)95 self.menuFile.setObjectName("menuFile")96 self.menuInfo = QtWidgets.QMenu(self.menuBar)97 self.menuInfo.setObjectName("menuInfo")98 self.menuTasks = QtWidgets.QMenu(self.menuBar)99 self.menuTasks.setObjectName("menuTasks")100 self.menu2 = QtWidgets.QMenu(self.menuTasks)101 self.menu2.setObjectName("menu2")102 self.menu3 = QtWidgets.QMenu(self.menuTasks)103 self.menu3.setObjectName("menu3")104 self.menu12 = QtWidgets.QMenu(self.menuTasks)105 self.menu12.setObjectName("menu12")106 MainWindow.setMenuBar(self.menuBar)107 self.actionSave = QtWidgets.QAction(MainWindow)108 self.actionSave.setObjectName("actionSave")109 self.actionExit = QtWidgets.QAction(MainWindow)110 self.actionExit.setObjectName("actionExit")111 self.actionProgram = QtWidgets.QAction(MainWindow)112 self.actionProgram.setObjectName("actionProgram")113 self.actionAuthor = QtWidgets.QAction(MainWindow)114 self.actionAuthor.setObjectName("actionAuthor")115 self.actionOpen = QtWidgets.QAction(MainWindow)116 self.actionOpen.setObjectName("actionOpen")117 self.action4 = QtWidgets.QAction(MainWindow)118 self.action4.setObjectName("action4")119 self.action5 = QtWidgets.QAction(MainWindow)120 self.action5.setObjectName("action5")121 self.action6 = QtWidgets.QAction(MainWindow)122 self.action6.setObjectName("action6")123 self.action7 = QtWidgets.QAction(MainWindow)124 self.action7.setObjectName("action7")125 self.action8 = QtWidgets.QAction(MainWindow)126 self.action8.setObjectName("action8")127 self.action9 = QtWidgets.QAction(MainWindow)128 self.action9.setObjectName("action9")129 self.action10 = QtWidgets.QAction(MainWindow)130 self.action10.setObjectName("action10")131 self.action11 = QtWidgets.QAction(MainWindow)132 self.action11.setObjectName("action11")133 self.action13 = QtWidgets.QAction(MainWindow)134 self.action13.setObjectName("action13")135 self.action14 = QtWidgets.QAction(MainWindow)136 self.action14.setObjectName("action14")137 self.action15 = QtWidgets.QAction(MainWindow)138 self.action15.setObjectName("action15")139 self.action16 = QtWidgets.QAction(MainWindow)140 self.action16.setObjectName("action16")141 self.action17 = QtWidgets.QAction(MainWindow)142 self.action17.setObjectName("action17")143 self.action18_2 = QtWidgets.QAction(MainWindow)144 self.action18_2.setObjectName("action18_2")145 self.action19 = QtWidgets.QAction(MainWindow)146 self.action19.setObjectName("action19")147 self.action20 = QtWidgets.QAction(MainWindow)148 self.action20.setObjectName("action20")149 self.action21 = QtWidgets.QAction(MainWindow)150 self.action21.setObjectName("action21")151 self.BFSaction = QtWidgets.QAction(MainWindow)152 self.BFSaction.setObjectName("BFSaction")153 self.actionA = QtWidgets.QAction(MainWindow)154 self.actionA.setObjectName("actionA")155 self.IDAaction = QtWidgets.QAction(MainWindow)156 self.IDAaction.setObjectName("IDAaction")157 self.actionNewTab = QtWidgets.QAction(MainWindow)158 self.actionNewTab.setObjectName("actionNewTab")159 self.action = QtWidgets.QAction(MainWindow)160 self.action.setObjectName("action")161 self.action_2 = QtWidgets.QAction(MainWindow)162 self.action_2.setObjectName("action_2")163 self.action_3 = QtWidgets.QAction(MainWindow)164 self.action_3.setObjectName("action_3")165 self.action_4 = QtWidgets.QAction(MainWindow)166 self.action_4.setObjectName("action_4")167 self.action_5 = QtWidgets.QAction(MainWindow)168 self.action_5.setObjectName("action_5")169 self.action_6 = QtWidgets.QAction(MainWindow)170 self.action_6.setObjectName("action_6")171 self.action_7 = QtWidgets.QAction(MainWindow)172 self.action_7.setObjectName("action_7")173 self.menuFile.addAction(self.actionOpen)174 self.menuFile.addAction(self.actionSave)175 self.menuFile.addAction(self.actionNewTab)176 self.menuFile.addAction(self.actionExit)177 self.menuInfo.addAction(self.actionProgram)178 self.menuInfo.addAction(self.actionAuthor)179 self.menu2.addAction(self.BFSaction)180 self.menu2.addAction(self.actionA)181 self.menu2.addAction(self.IDAaction)182 self.menu3.addAction(self.action)183 self.menu3.addAction(self.action_2)184 self.menu3.addAction(self.action_3)185 self.menu3.addAction(self.action_4)186 self.menu12.addAction(self.action_5)187 self.menu12.addAction(self.action_6)188 self.menu12.addAction(self.action_7)189 self.menuTasks.addAction(self.menu2.menuAction())190 self.menuTasks.addAction(self.menu3.menuAction())191 self.menuTasks.addAction(self.action4)192 self.menuTasks.addAction(self.action5)193 self.menuTasks.addAction(self.action6)194 self.menuTasks.addAction(self.action7)195 self.menuTasks.addAction(self.action8)196 self.menuTasks.addAction(self.action9)197 self.menuTasks.addAction(self.action10)198 self.menuTasks.addAction(self.action11)199 self.menuTasks.addAction(self.menu12.menuAction())200 self.menuTasks.addAction(self.action13)201 self.menuTasks.addAction(self.action14)202 self.menuTasks.addAction(self.action15)203 self.menuTasks.addAction(self.action16)204 self.menuTasks.addAction(self.action17)205 self.menuTasks.addAction(self.action18_2)206 self.menuTasks.addAction(self.action19)207 self.menuTasks.addAction(self.action20)208 self.menuTasks.addAction(self.action21)209 self.menuBar.addAction(self.menuFile.menuAction())210 self.menuBar.addAction(self.menuTasks.menuAction())211 self.menuBar.addAction(self.menuInfo.menuAction())212213 self.retranslateUi(MainWindow)214 self.tabWidget.setCurrentIndex(0)215 QtCore.QMetaObject.connectSlotsByName(MainWindow)216217 def retranslateUi(self, MainWindow):218 _translate = QtCore.QCoreApplication.translate219 MainWindow.setWindowTitle(_translate("MainWindow", "ÐÑаÑоид"))220 self.cmbDirect.setItemText(0, _translate("MainWindow", "ÐапÑавленнÑй"))221 self.cmbDirect.setItemText(1, _translate("MainWindow", "ÐенапÑавленнÑй"))222 self.cmbWeight.setItemText(0, _translate("MainWindow", "ÐагÑÑженнÑй"))223 self.cmbWeight.setItemText(1, _translate("MainWindow", "ÐенагÑÑженнÑй"))224 self.btnCancel.setText(_translate("MainWindow", "â ÐÑмениÑÑ"))225 self.btnNext.setText(_translate("MainWindow", "â ÐалÑÑе"))226 self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab), _translate("MainWindow", "Tab 1"))227 self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_2), _translate("MainWindow", "Tab 2"))228 self.menuFile.setTitle(_translate("MainWindow", "Файл"))229 self.menuInfo.setTitle(_translate("MainWindow", "?"))230 self.menuTasks.setTitle(_translate("MainWindow", "ÐадаÑи"))231 self.menu2.setTitle(_translate("MainWindow", "2. ÐоиÑк пÑÑи"))232 self.menu3.setTitle(_translate("MainWindow", "3. ÐлгоÑиÑм ÐейкÑÑÑÑ Ð¸ близкие к немÑ"))233 self.menu12.setTitle(_translate("MainWindow", "12. ÐеÑевÑÑ Ð¸ минималÑное оÑÑовное деÑево"))234 self.actionSave.setText(_translate("MainWindow", "СоÑ
ÑаниÑÑ"))235 self.actionExit.setText(_translate("MainWindow", "ÐÑÑ
од"))236 self.actionProgram.setText(_translate("MainWindow", "РпÑогÑамме"))237 self.actionAuthor.setText(_translate("MainWindow", "Ðб авÑоÑе"))238 self.actionOpen.setText(_translate("MainWindow", "ÐÑкÑÑÑÑ"))239 self.action4.setText(_translate("MainWindow", "4. ÐкÑÑенÑÑиÑиÑеÑ, ÑадиÑÑ, диамеÑÑ Ð¸ ÑÑепени"))240 self.action5.setText(_translate("MainWindow", "5. ÐзомоÑÑизм гÑаÑов"))241 self.action6.setText(_translate("MainWindow", "6. СвÑзноÑÑÑ Ð³ÑаÑа"))242 self.action7.setText(_translate("MainWindow", "7. Ðополнение Ð´Ð»Ñ Ð³ÑаÑа"))243 self.action8.setText(_translate("MainWindow", "8. ÐинаÑнÑе опеÑаÑии над гÑаÑами"))244 self.action9.setText(_translate("MainWindow", "9. ÐланаÑноÑÑÑ Ð³ÑаÑа"))245 self.action10.setText(_translate("MainWindow", "10. ÐоÑÑÑановление гÑаÑа из векÑоÑа"))246 self.action11.setText(_translate("MainWindow", "11. ÐкÑÑÑемалÑнÑе гÑаÑÑ"))247 self.action13.setText(_translate("MainWindow", "13. ÐадаÑа о Ñикле"))248 self.action14.setText(_translate("MainWindow", "14. РаÑкÑаÑка гÑаÑа"))249 self.action15.setText(_translate("MainWindow", "15. ÐадаÑа о ÑвадÑбаÑ
"))250 self.action16.setText(_translate("MainWindow", "16. Ðополнение 2-комплекÑа"))251 self.action17.setText(_translate("MainWindow", "17. ÐоÑÑÑановление 2-комплекÑа из векÑоÑа"))252 self.action18_2.setText(_translate("MainWindow", "18. ÐкÑÑÑемалÑнÑе 2-комплекÑÑ"))253 self.action19.setText(_translate("MainWindow", "19. ÐадаÑа коммивоÑжÑÑа"))254 self.action20.setText(_translate("MainWindow", "20. ÐоминиÑование и покÑÑваÑÑее множеÑÑво"))255 self.action21.setText(_translate("MainWindow", "21. ÐÑÑекÑивноÑÑÑ Ð°Ð»Ð³Ð¾ÑиÑмов поиÑка пÑÑи"))256 self.BFSaction.setText(_translate("MainWindow", "BFS"))257 self.actionA.setText(_translate("MainWindow", "A*"))258 self.IDAaction.setText(_translate("MainWindow", "Iterative deepening A"))259 self.actionNewTab.setText(_translate("MainWindow", "ÐÐ¾Ð²Ð°Ñ Ð²ÐºÐ»Ð°Ð´ÐºÐ°"))260 self.action.setText(_translate("MainWindow", "ÐлгоÑиÑм ÐейкÑÑÑÑ"))261 self.action_2.setText(_translate("MainWindow", "ÐлгоÑиÑм Флойда-УоÑÑелла"))262 self.action_3.setText(_translate("MainWindow", "ÐлгоÑиÑм Ðеллмана-ФоÑда"))263 self.action_4.setText(_translate("MainWindow", "ÐлгоÑиÑм ÐжонÑона"))264 self.action_5.setText(_translate("MainWindow", "ÐлгоÑиÑм ÐÑима"))265 self.action_6.setText(_translate("MainWindow", "ÐлгоÑиÑм ÐÑаÑкала"))
...
spawn.py
Source: spawn.py
...58 if value == 'None':59 kwds[name] = None60 else:61 kwds[name] = int(value)62 spawn_main(**kwds)63 sys.exit()64def get_command_line(**kwds):65 '''66 Returns prefix of command line used for spawning a child process67 '''68 if getattr(sys, 'frozen', False):69 return ([sys.executable, '--multiprocessing-fork'] +70 ['%s=%r' % item for item in kwds.items()])71 else:72 prog = 'from multiprocessing.spawn import spawn_main; spawn_main(%s)'73 prog %= ', '.join('%s=%r' % item for item in kwds.items())74 opts = util._args_from_interpreter_flags()75 return [_python_exe] + opts + ['-c', prog, '--multiprocessing-fork']76def spawn_main(pipe_handle, parent_pid=None, tracker_fd=None):77 '''78 Run code specified by data received over pipe79 '''80 assert is_forking(sys.argv)81 if sys.platform == 'win32':82 import msvcrt83 new_handle = reduction.steal_handle(parent_pid, pipe_handle)84 fd = msvcrt.open_osfhandle(new_handle, os.O_RDONLY)85 else:86 from . import semaphore_tracker87 semaphore_tracker._semaphore_tracker._fd = tracker_fd88 fd = pipe_handle89 exitcode = _main(fd)90 sys.exit(exitcode)91def _main(fd):92 with os.fdopen(fd, 'rb', closefd=True) as from_parent:93 process.current_process()._inheriting = True94 try:95 preparation_data = reduction.pickle.load(from_parent)96 prepare(preparation_data)97 self = reduction.pickle.load(from_parent)98 finally:99 del process.current_process()._inheriting100 return self._bootstrap()101def _check_not_importing_main():102 if getattr(process.current_process(), '_inheriting', False):103 raise RuntimeError('''104 An attempt has been made to start a new process before the105 current process has finished its bootstrapping phase.106 This probably means that you are not using fork to start your107 child processes and you have forgotten to use the proper idiom108 in the main module:109 if __name__ == '__main__':110 freeze_support()111 ...112 The "freeze_support()" line can be omitted if the program113 is not going to be frozen to produce an executable.''')114def get_preparation_data(name):115 '''116 Return info about parent needed by child to unpickle process object117 '''118 _check_not_importing_main()119 d = dict(120 log_to_stderr=util._log_to_stderr,121 authkey=process.current_process().authkey,122 )123 if util._logger is not None:124 d['log_level'] = util._logger.getEffectiveLevel()125 sys_path=sys.path.copy()126 try:127 i = sys_path.index('')128 except ValueError:129 pass130 else:131 sys_path[i] = process.ORIGINAL_DIR132 d.update(...
rpn_test.py
Source: rpn_test.py
...74 75 def tearDown(self):76 self.driver.close()77if __name__ == "__main__":...
How to use the Playwright library in a Jupyter notebook instead of using a regular .py script (on Windows)
playwright is timing out before running page.pause()
How to start playwright outside 'with' without context managers
How do you open multiple pages asynchronously with Playwright Python?
Is there a way to return response body in Playwright?
How do I click on "Next" button until it disappears in playwright (python)
Do I need to close the tab when using scrapy playwrigth?
Can Playwright be used to launch a browser instance
Running python code in playwright container
How to select an input according to a parent sibling label
as mentioned in https://github.com/microsoft/playwright-python/issues/480
Jupyter notebook uses asyncio event loop, so you should use async api.
from playwright.async_api import async_playwright
playwright = await async_playwright().start()
browser = await playwright.chromium.launch(headless = False)
page = await browser.new_page()
await page.goto("http://whatsmyuseragent.org/")
# await page.screenshot(path="example.png")
# await browser.close()
# await playwright.stop()
If you use sync
API, it will throw an Error like this:
from playwright.sync_api import sync_playwright
playwright = sync_playwright().start()
'''
Error: It looks like you are using Playwright Sync API inside the asyncio loop.
Please use the Async API instead.
'''
Check out the latest blogs from LambdaTest on this topic:
With the rapid evolution in technology and a massive increase of businesses going online after the Covid-19 outbreak, web applications have become more important for organizations. For any organization to grow, the web application interface must be smooth, user-friendly, and cross browser compatible with various Internet browsers.
The web development industry is growing, and many Best Automated UI Testing Tools are available to test your web-based project to ensure it is bug-free and easily accessible for every user. These tools help you test your web project and make it fully compatible with user-end requirements and needs.
The sky’s the limit (and even beyond that) when you want to run test automation. Technology has developed so much that you can reduce time and stay more productive than you used to 10 years ago. You needn’t put up with the limitations brought to you by Selenium if that’s your go-to automation testing tool. Instead, you can pick from various test automation frameworks and tools to write effective test cases and run them successfully.
The year 2021 can be encapsulated as one major transition. In 2022, the current breakthroughs in the elusive fight to eliminate the COVID-19 pandemic are top of mind for enterprises globally. At the same time, we are witnessing recent strides in technological advancements as the world gets digitized. As a result, the year 2022 will see the resumption of massive changes in technology and digital transformation, driving firms to adapt and transform themselves perpetually.
With the rapidly evolving technology due to its ever-increasing demand in today’s world, Digital Security has become a major concern for the Software Industry. There are various ways through which Digital Security can be achieved, Captcha being one of them.Captcha is easy for humans to solve but hard for “bots” and other malicious software to figure out. However, Captcha has always been tricky for the testers to automate, as many of them don’t know how to handle captcha in Selenium or using any other test automation framework.
LambdaTest’s Playwright tutorial will give you a broader idea about the Playwright automation framework, its unique features, and use cases with examples to exceed your understanding of Playwright testing. This tutorial will give A to Z guidance, from installing the Playwright framework to some best practices and advanced concepts.
Get 100 minutes of automation test minutes FREE!!