

{"id":126130,"date":"2023-11-16T14:34:55","date_gmt":"2023-11-16T09:04:55","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=126130"},"modified":"2023-11-16T14:34:55","modified_gmt":"2023-11-16T09:04:55","slug":"python-program-to-open-multiple-software-using-gui-application-tkinter","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/python-program-to-open-multiple-software-using-gui-application-tkinter\/","title":{"rendered":"Python Program to Open Multiple Software Using GUI Application Tkinter"},"content":{"rendered":"<h3>Program 1<\/h3>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">from tkinter import *\r\nimport tkinter.filedialog\r\nimport os\r\ndef opencalc():\r\n   os.system(\"calc\")\r\ndef openpaintb():\r\n    os.system(\"mspaint\")\r\ndef openword():\r\n    os.system(\"start winword.exe\")\r\ndef openexcel():\r\n    os.system(\"start excel.exe\")\r\ndef openpower():\r\n    os.system(\"start powerpnt.exe\")\r\ndef opennotepad():\r\n    os.system(\"notepad\")\r\ndef opendate():\r\n    os.system(\"date\")\r\nmyroot=Tk()\r\nmyroot.geometry('600x600')\r\nmyroot.title(\"Menu Demo Application\")\r\nmyroot.wm_iconbitmap('2.ico')\r\nmenubar=Menu(myroot)\r\nmyroot.config(menu=menubar)\r\nfilemenu=Menu(myroot,tearoff=0)\r\nfilemenu.add_command(label=\"NotePad\",command=opennotepad)\r\nfilemenu.add_command(label=\"Date\",command=opendate)\r\nfilemenu.add_command(label=\"Calculator\",command=opencalc)\r\nfilemenu.add_command(label=\"MS Paint\",command=openpaintb)\r\nfilemenu.add_command(label=\"MS Word\",command=openword)\r\nfilemenu.add_command(label=\"MS Excel\",command=openexcel)\r\nfilemenu.add_command(label=\"MS Power Point\",command=openpower)\r\nfilemenu.add_separator()\r\nfilemenu.add_command(label=\"Exit\",command=myroot.destroy)\r\nmenubar.add_cascade(label='File',menu=filemenu)\r\n\r\neditmenu=Menu(myroot,tearoff=0)\r\neditmenu.add_command(label=\"Cut\")\r\neditmenu.add_command(label=\"Copy\")\r\neditmenu.add_command(label=\"Paste\")\r\neditmenu.add_command(label=\"Delete\")\r\neditmenu.add_separator()\r\nmenubar.add_cascade(label='Edit',menu=editmenu)\r\nmyroot.mainloop()<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Program 1 from tkinter import * import tkinter.filedialog import os def opencalc(): os.system(&#8220;calc&#8221;) def openpaintb(): os.system(&#8220;mspaint&#8221;) def openword(): os.system(&#8220;start winword.exe&#8221;) def openexcel(): os.system(&#8220;start excel.exe&#8221;) def openpower(): os.system(&#8220;start powerpnt.exe&#8221;) def opennotepad(): os.system(&#8220;notepad&#8221;) def opendate(): os.system(&#8220;date&#8221;)&#46;&#46;&#46;<\/p>\n","protected":false},"author":581,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[46],"tags":[29015,10333,28626,22366,29014],"class_list":["post-126130","post","type-post","status-publish","format-standard","hentry","category-python","tag-open-multiple-software-using-gui-application-tkinter","tag-python","tag-python-practical","tag-python-program","tag-python-program-to-open-multiple-software-using-gui-application-tkinter"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Python Program to Open Multiple Software Using GUI Application Tkinter - DataFlair<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/data-flair.training\/blogs\/python-program-to-open-multiple-software-using-gui-application-tkinter\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python Program to Open Multiple Software Using GUI Application Tkinter - DataFlair\" \/>\n<meta property=\"og:description\" content=\"Program 1 from tkinter import * import tkinter.filedialog import os def opencalc(): os.system(&quot;calc&quot;) def openpaintb(): os.system(&quot;mspaint&quot;) def openword(): os.system(&quot;start winword.exe&quot;) def openexcel(): os.system(&quot;start excel.exe&quot;) def openpower(): os.system(&quot;start powerpnt.exe&quot;) def opennotepad(): os.system(&quot;notepad&quot;) def opendate(): os.system(&quot;date&quot;)&#046;&#046;&#046;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/python-program-to-open-multiple-software-using-gui-application-tkinter\/\" \/>\n<meta property=\"og:site_name\" content=\"DataFlair\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/DataFlairWS\/\" \/>\n<meta property=\"article:published_time\" content=\"2023-11-16T09:04:55+00:00\" \/>\n<meta name=\"author\" content=\"DataFlair Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:site\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DataFlair Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Python Program to Open Multiple Software Using GUI Application Tkinter - DataFlair","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/data-flair.training\/blogs\/python-program-to-open-multiple-software-using-gui-application-tkinter\/","og_locale":"en_US","og_type":"article","og_title":"Python Program to Open Multiple Software Using GUI Application Tkinter - DataFlair","og_description":"Program 1 from tkinter import * import tkinter.filedialog import os def opencalc(): os.system(\"calc\") def openpaintb(): os.system(\"mspaint\") def openword(): os.system(\"start winword.exe\") def openexcel(): os.system(\"start excel.exe\") def openpower(): os.system(\"start powerpnt.exe\") def opennotepad(): os.system(\"notepad\") def opendate(): os.system(\"date\")&#46;&#46;&#46;","og_url":"https:\/\/data-flair.training\/blogs\/python-program-to-open-multiple-software-using-gui-application-tkinter\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2023-11-16T09:04:55+00:00","author":"DataFlair Team","twitter_card":"summary_large_image","twitter_creator":"@DataFlairWS","twitter_site":"@DataFlairWS","twitter_misc":{"Written by":"DataFlair Team","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/python-program-to-open-multiple-software-using-gui-application-tkinter\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/python-program-to-open-multiple-software-using-gui-application-tkinter\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/c187795dc82ab948373cca526df7c445"},"headline":"Python Program to Open Multiple Software Using GUI Application Tkinter","datePublished":"2023-11-16T09:04:55+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/python-program-to-open-multiple-software-using-gui-application-tkinter\/"},"wordCount":12,"commentCount":0,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"keywords":["Open Multiple Software Using GUI Application Tkinter","Python","python practical","python program","Python Program to Open Multiple Software Using GUI Application Tkinter"],"articleSection":["Python Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/python-program-to-open-multiple-software-using-gui-application-tkinter\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/python-program-to-open-multiple-software-using-gui-application-tkinter\/","url":"https:\/\/data-flair.training\/blogs\/python-program-to-open-multiple-software-using-gui-application-tkinter\/","name":"Python Program to Open Multiple Software Using GUI Application Tkinter - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"datePublished":"2023-11-16T09:04:55+00:00","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/python-program-to-open-multiple-software-using-gui-application-tkinter\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/python-program-to-open-multiple-software-using-gui-application-tkinter\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/python-program-to-open-multiple-software-using-gui-application-tkinter\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog Home","item":"https:\/\/data-flair.training\/blogs\/"},{"@type":"ListItem","position":2,"name":"Python Tutorials","item":"https:\/\/data-flair.training\/blogs\/category\/python\/"},{"@type":"ListItem","position":3,"name":"Python Program to Open Multiple Software Using GUI Application Tkinter"}]},{"@type":"WebSite","@id":"https:\/\/data-flair.training\/blogs\/#website","url":"https:\/\/data-flair.training\/blogs\/","name":"DataFlair","description":"Learn Today. Lead Tomorrow.","publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/data-flair.training\/blogs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/data-flair.training\/blogs\/#organization","name":"DataFlair","url":"https:\/\/data-flair.training\/blogs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","width":106,"height":48,"caption":"DataFlair"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DataFlairWS\/","https:\/\/x.com\/DataFlairWS","https:\/\/www.linkedin.com\/company\/dataflair-web-services-pvt-ltd\/","https:\/\/www.youtube.com\/user\/DataFlairWS"]},{"@type":"Person","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/c187795dc82ab948373cca526df7c445","name":"DataFlair Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/2302ebc438084d2f1f993edc1996a0aae01332e81f3227cba8df0c48ec010ca4?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/2302ebc438084d2f1f993edc1996a0aae01332e81f3227cba8df0c48ec010ca4?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/2302ebc438084d2f1f993edc1996a0aae01332e81f3227cba8df0c48ec010ca4?s=96&d=mm&r=g","caption":"DataFlair Team"},"description":"DataFlair Team provides high-impact content on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. We make complex concepts easy to grasp, helping learners of all levels succeed in their tech careers.","url":"https:\/\/data-flair.training\/blogs\/author\/dfteam6\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/126130","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/users\/581"}],"replies":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/comments?post=126130"}],"version-history":[{"count":1,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/126130\/revisions"}],"predecessor-version":[{"id":126131,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/126130\/revisions\/126131"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=126130"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=126130"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=126130"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}