Challenge

Week - 6 - Creating the GUI for final checks

Program:

The above set of commands are defined to generate GUI to create a widget which contains buttons and lables which are essential for users understanding are written.

Lines 1-3: Defined to generate a simple window using Tk programming

Lines 5-8: Defined to set the conditions for geneated window such as window title, resolution, rescalability and makeing the displayed active when executed.

Lines 10-17: These codes are defined to create buttons to delete displayed points, lines, elements, surfaces, solids, components and loads

Lines 20-26: These codes are defined to create buttons to delete empty and unsued entites that are defined in hypermesh. These entities include Components, Assemblies, Properties, Materials, Load collectors and Load steps.

Line 28: This code is defined to generate a button which isolates the displayed and deletes the components which are not displyed

Lines 30-42: These codes are defined to generate buttos which enable the user re-oder and re-number the points, nodes, lines, elements, surfaces, components, Asseblies, properties, Materials, Loads, Load Collectors and Load Steps.

Line 44: This code is defined to create a master button which does all the operations of deleting empty or unsed entities and to re-order and re-number entities within a click of a button.

Lines 49-52: These codes define a procedure which when executed upon calling a delete displayed buttons, to delete displayed entities when called.

Lines 54-56: These codes define a procedure which when called deletes empty components, assemblies, load collectors and load steps.

Lines 59-62: These codes define a procedure which when called deletes unused properties and materials.

Lines 64-68: These codes define a procedure which when called isolates the displayed components i.e., it reatins only the displayed components and deletes the hidden.

Lines 70-73: These codes define a procedure which when called re-orders/re-numbers the displayed entities.

Line 75-94: These codes define a procedure which when called does all the mentioned operations i.e., delete empty and unsed entities, re-order and re-number displayed entities. with a click of a single button.

Output:

Your portfolio, next

Ship work like this
in your own course.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.