{"id":1392,"date":"2020-05-27T00:00:00","date_gmt":"2020-05-26T15:00:00","guid":{"rendered":"https:\/\/www.ishikawasekkei.com\/?p=1392"},"modified":"2020-05-26T23:57:04","modified_gmt":"2020-05-26T14:57:04","slug":"python-tkinter-gui-programing-how-to-get-table-information","status":"publish","type":"post","link":"https:\/\/www.ishikawasekkei.com\/index.php\/2020\/05\/27\/python-tkinter-gui-programing-how-to-get-table-information\/","title":{"rendered":"Python tkinter GUI\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0 \u30c6\u30fc\u30d6\u30eb\u60c5\u5831\u53d6\u5f97"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u3000\u4eca\u65e5\u3082\u898b\u306b\u6765\u3066\u304f\u3060\u3055\u3063\u3066\u3001\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3059\u3002\u77f3\u5ddd\u3055\u3093\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3000\u4eca\u65e5\u306f\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30aa\u30e9\u30af\u30eb\u3078\u63a5\u7d9a\u3001\u305d\u306e\u30b9\u30ad\u30fc\u30de\u306e\u30c6\u30fc\u30d6\u30eb\u60c5\u5831\u3092\u53d6\u5f97\u3057\u3066Treeview\u3078\u8868\u793a\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u306b\u30c1\u30e3\u30ec\u30f3\u30b8\u3057\u307e\u3057\u305f\u3002\u3044\u3084\uff5e\u3001\u3051\u3063\u3053\u3046\u6642\u9593\u304c\u304b\u304b\u308a\u307e\u3057\u305f\u306d\u3047\u3002Treeview\u3092\u601d\u3063\u305f\u3088\u3046\u306b\u64cd\u4f5c\u3059\u308b\u306e\u304c\u96e3\u3057\u304b\u3063\u305f\u306a\u3041\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3000Oracle\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306f18c Express Edition\u3001Python\u306fAnaconda3\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u51fa\u6765\u4e0a\u304c\u308a\u30a4\u30e1\u30fc\u30b8<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u3000\u4eca\u56de\u306e\u30bd\u30fc\u30b9\u3092\u5b9f\u884c\u3057\u3066\u3001\u300cload table\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u3001\u3053\u3093\u306a\u611f\u3058\u306e\u30a6\u30a3\u30f3\u30c9\u30a6\u306b\u306a\u308a\u307e\u3059\u3002\u5de6\u5074\u306e\u30c6\u30fc\u30d6\u30eb\u4e00\u89a7\u3092\u9078\u629e\u3059\u308b\u3068\u53f3\u5074\u306b\u9805\u76ee\u306e\u4e00\u89a7\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ishikawasekkei.com\/wp-content\/uploads\/2020\/05\/image-64-1024x395.png\" alt=\"\" class=\"wp-image-1393\" width=\"674\" height=\"259\" srcset=\"https:\/\/www.ishikawasekkei.com\/wp-content\/uploads\/2020\/05\/image-64-1024x395.png 1024w, https:\/\/www.ishikawasekkei.com\/wp-content\/uploads\/2020\/05\/image-64-300x116.png 300w, https:\/\/www.ishikawasekkei.com\/wp-content\/uploads\/2020\/05\/image-64.png 1059w\" sizes=\"auto, (max-width: 674px) 100vw, 674px\" \/><figcaption>\u3067\u304d\u3042\u304c\u308a\u30a4\u30e1\u30fc\u30b8<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9<\/h2>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">import cx_Oracle as db\nimport tkinter as tk\nimport tkinter.ttk as ttk\n\nLOGIN_USER = \"\u30e6\u30fc\u30b6\u30fc\u540d\u3092\u3053\u3053\u306b\u5165\u529b\"\nLOGIN_PASSWORD = \"\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u3053\u3053\u306b\u5165\u529b\"\nLOGIN_HOST = \"localhost:1521\/xepdb1\"\n\nclass Application(tk.Tk):\n    def __init__(self):\n        super().__init__()\n        self.title(\"Table viewer sample for ORACLE XE 18c\")\n\n        self.conn = db.connect(LOGIN_USER, LOGIN_PASSWORD, LOGIN_HOST)\n        self.cur = self.conn.cursor()\n        \n        self.style = ttk.Style(self)\n        self.style.configure(\"Treeview\", rowheight=30)\n        \n        columns = (\"#1\", \"#2\")\n        self.table_list = ttk.Treeview(self, show=\"headings\", columns=columns, selectmode=\"browse\")\n        self.table_list.heading(\"#1\", text=\"TABLE_NAME\")\n        self.table_list.column(\"#1\", width=125)\n        self.table_list.heading(\"#2\", text=\"COMMENTS\")\n        self.table_list.column(\"#2\", width=300)\n        self.table_list.grid(row=0, column=0, rowspan=2, sticky=tk.NSEW)\n        self.scroll_bar = ttk.Scrollbar(self, command=self.table_list.yview)\n        self.table_list.configure(yscroll=self.scroll_bar.set)\n        self.scroll_bar.grid(row=0, column=1, rowspan=2, sticky=tk.NS)\n        self.table_list.bind(\"&lt;&lt;TreeviewSelect>>\", self.show_table)\n        \n        columns = (\"#1\",\"#2\",\"#3\")\n        self.table_info = ttk.Treeview(self, show=\"headings\", columns=columns)\n        self.table_info.heading(\"#1\", text=\"COLUMN_NAME\")\n        self.table_info.heading(\"#2\", text=\"COMMENTS\")\n        self.table_info.heading(\"#3\", text=\"DATA_TYPE\")\n        self.table_info.grid(row=0, column=2, sticky=tk.NSEW)\n        \n        self.load_button = ttk.Button(self, text=\"load table\", command=self.load_table)\n        self.load_button.grid(row=1, column=2)\n        \n        self.grid_rowconfigure(0, weight=1)\n\n    def load_table(self):\n        self.table_list.delete(*self.table_list.get_children())\n        self.table_info.delete(*self.table_info.get_children())\n        sql = (\"SELECT TABLE_NAME, COMMENTS\"\n               \"  FROM USER_TAB_COMMENTS\"\n               \" WHERE TABLE_TYPE = 'TABLE'\")\n        results = self.cur.execute(sql)\n        for row in results:\n            self.table_list.insert(\"\", tk.END, values=row)\n        self.table_list.selection_set(self.table_list.get_children()[0])\n    \n    def show_table(self, event):\n        sel = self.table_list.selection()\n        table_name = self.table_list.item(sel[0])[\"values\"][0]\n        sql = (\"SELECT T1.COLUMN_NAME, T1.COMMENTS,\"\n               \"  CASE WHEN T2.DATA_TYPE IN ('TIMESTAMP(6)','DATE') THEN T2.DATA_TYPE\"\n               \"       WHEN T2.DATA_TYPE IN ('CHAR','VARCHAR2') THEN T2.DATA_TYPE ||'('||T2.DATA_LENGTH||')'\"\n               \"       WHEN T2.DATA_TYPE = 'NUMBER' THEN T2.DATA_TYPE || \"\n               \"         CASE WHEN T2.DATA_PRECISION IS NULL AND T2.DATA_SCALE IS NULL THEN ''\"\n               \"              WHEN T2.DATA_PRECISION IS NOT NULL AND NVL(T2.DATA_SCALE,0) = 0 THEN '('||T2.DATA_PRECISION||')'\"\n               \"              WHEN T2.DATA_PRECISION IS NOT NULL AND T2.DATA_SCALE IS NOT NULL THEN '('||T2.DATA_PRECISION||'.'||T2.DATA_SCALE||')'\"\n               \"              WHEN T2.DATA_PRECISION IS NULL THEN '(.'||T2.DATA_SCALE||')'\"\n               \"              END\"\n               \"       END\"\n               \"  FROM USER_COL_COMMENTS T1, USER_TAB_COLUMNS T2\"\n               \" WHERE T1.TABLE_NAME = T2.TABLE_NAME\"\n               \"   AND T1.COLUMN_NAME = T2.COLUMN_NAME\"\n               \"   AND T1.TABLE_NAME = :table_name\")\n        results = self.cur.execute(sql, table_name=table_name)\n        self.table_info.delete(*self.table_info.get_children())\n        for row in results:\n            self.table_info.insert(\"\", tk.END, values=row)\n        \nif __name__ == \"__main__\":\n    application = Application()\n    application.mainloop()\n<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u89e3\u8aac<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u3000Oracle\u3078\u306e\u63a5\u7d9a\u306b\u306f\u304a\u306a\u3058\u307f\u306ecx_Oracle\u3092\u5229\u7528\u3057\u307e\u3057\u305f\u3002cx_Oracle\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u306b\u3064\u3044\u3066\u306f\u3001<a href=\"https:\/\/www.ishikawasekkei.com\/index.php\/2020\/03\/20\/python-program-connect-to-oracle\/\" class=\"aioseop-link\">\u3053\u3061\u3089<\/a>\u3092\u53c2\u8003\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3000\uff15\uff5e7\u884c\u76ee\u306e\u63a5\u7d9a\u60c5\u5831\u306f\u3054\u81ea\u5206\u306e\u74b0\u5883\u306b\u3042\u308f\u305b\u3066\u5909\u66f4\u3057\u3066\u304f\u3060\u3055\u3044\u3002Oracle18c Express Edition\u3092\u30c7\u30d5\u30a9\u30eb\u30c8\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u307c\u304f\u306e\u74b0\u5883\u3067\u306f\u3001\u3053\u306eLOGIN_HOST\u3067\u63a5\u7d9a\u3067\u304d\u307e\u3057\u305f\u3002\u3082\u3057\u304b\u3057\u305f\u3089localhost\u3092\u30ed\u30fc\u30ab\u30ebPC\u306eIP\u30a2\u30c9\u30ec\u30b9\u306b\u5909\u66f4\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u304b\u3082\u77e5\u308c\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u300014\u300115\u884c\u76ee\u306e\u521d\u671f\u5316\u51e6\u7406\u3067\u3001Oracle\u3078\u306e\u63a5\u7d9a\u3068\u30ab\u30fc\u30bd\u30eb\u53d6\u5f97\u3057\u3066\u3044\u307e\u3059\u300221\u884c\u76ee\u3067Treeview\u3092\u4f5c\u6210\u3057\u3066\u3044\u307e\u3059\u3002show\u30aa\u30d7\u30b7\u30e7\u30f3\u306f&#8221;tree&#8221;\u3068&#8221;heading&#8221;\u304c\u6307\u5b9a\u3067\u304d\u307e\u3059\u304c\u3001\u7d44\u307f\u5408\u308f\u305b\u3067\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5909\u308f\u3063\u3066\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>&#8220;tree&#8221;\u3000\u30ab\u30e9\u30e0#0\u3092\u8868\u793a\u3057\u307e\u3059\u3002<\/li><li>&#8220;headings&#8221;\u3000\u30d8\u30c3\u30c0\u884c\u3092\u8868\u793a\u3057\u307e\u3059\u3002<\/li><li>&#8220;tree headings&#8221;\u3000\u30ab\u30e9\u30e0#0\u3068\u30d8\u30c3\u30c0\u884c\u306e\u4e21\u65b9\u3092\u8868\u793a\u3057\u307e\u3059\u3002\uff08\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\uff09<\/li><li>&#8220;&#8221; \u30ab\u30e9\u30e0#0\u3082\u30d8\u30c3\u30c0\u884c\u3082\u8868\u793a\u3057\u306a\u3044\u3002<\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u3000selectmode\u306f\u3001&#8221;extended&#8221;\u3001&#8221;browse&#8221;\u3001&#8221;none&#8221;\u304c\u9078\u629e\u53ef\u80fd\u3067\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u610f\u5473\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>&#8220;extended&#8221;\u3000\u8907\u6570\u30a2\u30a4\u30c6\u30e0\u304c\u9078\u629e\u53ef\u80fd\u3002\uff08\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\uff09<\/li><li>&#8220;browse&#8221;\u3000\u5358\u4e00\u306e\u30a2\u30a4\u30c6\u30e0\u304c\u9078\u629e\u53ef\u80fd\u3002<\/li><li>&#8220;none&#8221;\u3000\u9078\u629e\u72b6\u614b\u306f\u5909\u308f\u3089\u306a\u3044\u3002<\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u3000\u3061\u306a\u307f\u306b\u3001\u3053\u306eTreeview\u306e\u884c\u9593\u3001\u307c\u304f\u306e\u74b0\u5883Windows10\u3067\u306f\u4f4e\u304f\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u3066\u6587\u5b57\u304c\u5207\u308c\u3066\u3057\u307e\u3063\u3066\u3044\u305f\u306e\u3067\u300117\u300118\u884c\u76ee\u306etkk.Style\u3092\u4f7f\u3063\u3066&#8221;Treeview&#8221;\u306erowheight\u309230\u306b\u30bb\u30c3\u30c8\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3000\u30b9\u30af\u30ed\u30fc\u30eb\u30d0\u30fc\u306f27\u300128\u884c\u76ee\u3067\u4f5c\u6210\u3057\u3066\u30bb\u30c3\u30c8\u3057\u3066\u3044\u307e\u3059\u3002\u30a4\u30c7\u30a3\u30aa\u30e0\u3060\u3068\u601d\u3063\u3066\u899a\u3048\u3066\u3057\u307e\u3044\u307e\u3057\u3087\u3046\u300230\u884c\u76ee\u3067\u30d0\u30a4\u30f3\u30c9\u3057\u3066\u3044\u308b\u306e\u306f\u3001\u4eee\u60f3\u30a4\u30d9\u30f3\u30c8\u306e&lt;&lt;TreeviewSelect&gt;&gt;\u3067\u3059\u3002\u30bb\u30ec\u30af\u30b7\u30e7\u30f3\u304c\u5909\u66f4\u3055\u308c\u305f\u3068\u304d\u306b\u767a\u751f\u3057\u307e\u3059\u3002\u3053\u3053\u3067\u306f\u3001show_table\u3092\u30d0\u30a4\u30f3\u30c9\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u3067\u9078\u629e\u3055\u308c\u305f\u30c6\u30fc\u30d6\u30eb\u306e\u60c5\u5831\u3092\u96a3\u306eTreeview\u306b\u8868\u793a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u300042\u884c\u76ee\u306e<code>self.grid_rowconfigure(0, weight=1)<\/code>\u3067\u3059\u304c\u3001\u30a6\u30a3\u30f3\u30c9\u30a6\u306e\u30b5\u30a4\u30ba\u3092\u5909\u66f4\u3057\u305f\u3068\u304d\u306b\u3001\u884c\u304c\u3069\u308c\u304f\u3089\u3044\u306e\u5272\u5408\u3067\u5e83\u304c\u308b\u304b\u3001\u3068\u3044\u3046\u306e\u3092\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002\u6307\u5b9a\u3057\u306a\u3044\u5834\u5408\u306eweight\u306f0\u306b\u30bb\u30c3\u30c8\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308agrid\u3067\u6307\u5b9a\u3055\u308c\u305f0\u884c\u76ee\u304c\u30a6\u30a3\u30f3\u30c9\u30a6\u306e\u30b5\u30a4\u30ba\u5909\u66f4\u306b\u4f34\u3063\u3066\u5909\u66f4\u3055\u308c\u307e\u3059\u3002\u3061\u306a\u307f\u306b\u3001\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u306bgrid\u3092\u9069\u7528\u3059\u308b\u3068\u304d\u306bsticky\u3092\u6307\u5b9a\u3057\u306a\u3044\u5834\u5408\u306f\u5927\u304d\u3055\u306f\u5909\u308f\u3089\u306a\u3044\u306e\u3067\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u300045\u300146\u884c\u76ee\u3067\u306f\u3001Treeview\u306e\u9805\u76ee\u3092\u524a\u9664\u3057\u3066\u3044\u307e\u3059\u3002\u3059\u3079\u3066\u306e\u9805\u76ee\u3092\u53d6\u5f97\u3059\u308b\u306e\u306b\u3001<code>self.table_list.get_children()<\/code>\u3092\u5229\u7528\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u30e1\u30bd\u30c3\u30c9\u306f\u3059\u3079\u3066\u306e\u9805\u76ee\u3092\u30bf\u30d7\u30eb\u3067\u623b\u3057\u307e\u3059\u3002<code>self.table_list.delete()<\/code>\u306e\u5f15\u6570\u306f\u3001\u524a\u9664\u3057\u305f\u3044\u9805\u76ee\u3092\u3059\u3079\u3066\u6e21\u3059\u5fc5\u8981\u304c\u3042\u308b\u305f\u3081\u3001\u5148\u982d\u306b\u300c*\u300d\u30a2\u30b9\u30bf\u30ea\u30b9\u30af\u3092\u4ed8\u3051\u3066\u3001\u30bf\u30d7\u30eb\u306e\u30a2\u30f3\u30d1\u30c3\u30af\u3092\u3057\u3066\u3044\u307e\u3059\u3002\u30bf\u30d7\u30eb\u306e\u307e\u307e\u3067\u306f\u52d5\u4f5c\u3057\u307e\u305b\u3093\u306e\u3067\u3001\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u300047\uff5e49\u884c\u76ee\u306fSQL\u6587\u3092\u5b9a\u7fa9\u3057\u3066\u3044\u307e\u3059\u3002\u8907\u6570\u6587\u5b57\u5217\u3092\u30a4\u30f3\u30c7\u30f3\u30c8\u3092\u7121\u8996\u3057\u305f\u5f62\u3067\u6539\u884c\u3059\u308b\u306e\u306b\u4e38\u62ec\u5f27\u300c()\u300d\u3092\u4f7f\u3063\u3066\u3044\u307e\u3059\u3002\u4e38\u62ec\u5f27\u306e\u4e2d\u306f\u30a4\u30f3\u30c7\u30f3\u30c8\u7121\u8996\u3067\u304d\u308b\u306e\u3067\u3059\u3088\u306d\u3002\u3061\u306a\u307f\u306b\u3053\u3053\u3067\u6307\u5b9a\u3057\u3066\u3044\u308b\u30c6\u30fc\u30d6\u30eb\u306eUSER_TAB_COMMENTS\u306f\u3001\u30aa\u30e9\u30af\u30eb\u306e\u30c7\u30fc\u30bf\u30c7\u30a3\u30af\u30b7\u30e7\u30ca\u30ea\u3067\u3001\u30c6\u30fc\u30d6\u30eb\u306b\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u30b3\u30e1\u30f3\u30c8\u3092\u53c2\u7167\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u30d3\u30e5\u30fc\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3000SQL\u6587\u306e\u5b9f\u884c\u306f50\u884c\u76ee\u3067\u3059\u300251\u884c\u76ee\u3067\u7d50\u679c\u30bb\u30c3\u30c8\u3092\u9806\u756a\u306b\u53d6\u308a\u51fa\u3059for\u30eb\u30fc\u30d7\u3092\u8a18\u8ff0\u3057\u3066\u3044\u307e\u3059\u3002\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3057\u3066\u3001\u30eb\u30fc\u30d7\u3057\u3066\u4e00\u884c\u305a\u3064\u51e6\u7406\u3059\u308b\u3001\u3053\u306e\u30d1\u30bf\u30fc\u30f3\u3082\u3088\u304f\u4f7f\u3044\u307e\u3059\u306e\u3067\u3001\u899a\u3048\u3066\u304a\u304f\u3068\u4fbf\u5229\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3000Treeview\u3078\u306e\u30c7\u30fc\u30bf\u306e\u8ffd\u52a0\u306finsert()\u30e1\u30bd\u30c3\u30c9\u3067\u3059\u3002values\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u4f7f\u3046\u3053\u3068\u3067\u8907\u6570\u9805\u76ee\u3092\u4e00\u6c17\u306b\u30bb\u30c3\u30c8\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3000\u3042\u3068\u300153\u884c\u76ee\u306f\u3001\u30c6\u30fc\u30d6\u30eb\u3092\u53d6\u5f97\u3057\u305f\u3068\u304d\u306b\u30011\u884c\u76ee\u3092\u9078\u629e\u3055\u305b\u3066\u3001\u30c6\u30fc\u30d6\u30eb\u60c5\u5831\u3092\u53f3\u5074\u306b\u8868\u793a\u3059\u308b\u305f\u3081\u306b\u8ffd\u52a0\u3057\u307e\u3057\u305f\u30021\u884c\u76ee\u3092\u9078\u629e\u3059\u308b\u306e\u306b\u7d50\u69cb\u60a9\u307f\u307e\u3057\u305f\u3088\uff5e\u3002<code>selection_set()<\/code>\u30e1\u30bd\u30c3\u30c9\u3078\u6e21\u3059\u30d1\u30e9\u30e1\u30fc\u30bf\u306f\u9805\u76ee\u540d\u306a\u306e\u3067\u3059\u3088\u306d\u30020\u3068\u304b-1\u3068\u304b\u3092\u6307\u5b9a\u3057\u3066\u3082\u30a8\u30e9\u30fc\u306b\u306a\u308a\u307e\u3059\u3002\u305d\u3053\u3067\u3001\u3053\u3053\u3067\u306f\u3001<code>self.table_list.get_children()[0]<\/code>\u3092\u4f7f\u3063\u3066\u6700\u521d\u306e\u9805\u76ee\u3092\u53d6\u5f97\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u306e0\u3092-1\u306b\u5909\u66f4\u3059\u308b\u3068\u6700\u5f8c\u306e\u9805\u76ee\u3001\u4efb\u610f\u306e\u884c\u306e\u5834\u5408\u3082\u6570\u5024\u3092\u5909\u66f4\u3059\u308b\u3060\u3051\u3067\u5bfe\u5fdc\u53ef\u80fd\u3067\u3059\u306d\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u300056\u884c\u76ee\u3001<code>sel = self.table_list.selection()<\/code>\u306f\u3001\u9078\u629e\u4e2d\u306e\u30a2\u30a4\u30c6\u30e0\u540d\u3092\u53d6\u5f97\u3057\u3066\u3044\u307e\u3059\u3002\u53d6\u5f97\u7d50\u679c\u306f\u8907\u6570\u306e\u5834\u5408\u3082\u3042\u308b\u306e\u3067\u30bf\u30d7\u30eb\u3067\u623b\u3063\u3066\u304d\u307e\u3059\u3002\u3053\u3053\u3067\u306f\u4e00\u9805\u76ee\u3057\u304b\u53d6\u5f97\u3067\u304d\u306a\u3044\u8a2d\u5b9a\u3067\u3059\u306e\u3067\u3001<code>sel[0]<\/code>\u3068\u6307\u5b9a\u3059\u308c\u3070\u3001\u9078\u629e\u4e2d\u306e\u9805\u76ee\u304c\u5229\u7528\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u300257\u884c\u76ee\u306e<code>table_name = self.table_list.item(sel[0])[\"values\"][0]<\/code>\u3067\u3001Treeview\u306b\u30bb\u30c3\u30c8\u3055\u308c\u305f\u5024\u3092\u53d6\u5f97\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u307e\u3068\u3081<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u3000\u3044\u3084\uff5e\u3001\u6642\u9593\u304b\u304b\u3063\u305f\u306a\u3041\u3002\u3042\u3001\u4e8c\u3064\u76ee\u306eSQL\u306e\u8aac\u660e\u3092\u5fd8\u308c\u3066\u307e\u3057\u305f\u3002\u307e\u3001\u305d\u3093\u306a\u306b\u96e3\u3057\u304f\u306a\u3044\u3057\u3001\u898b\u308c\u3070\u308f\u304b\u308b\u304b\u3002Treeview\u306e\u6271\u3044\u306b\u6163\u308c\u308b\u306e\u306b\u306f\u3001\u3061\u3087\u3063\u3068\u6642\u9593\u304c\u304b\u304b\u308a\u305d\u3046\u3067\u3059\u306d\u3002\u307e\u305f\u30b5\u30f3\u30d7\u30eb\u4f5c\u3063\u3066\u307f\u307e\u3059\u306d\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3000\u4eca\u65e5\u3082\u898b\u306b\u6765\u3066\u304f\u3060\u3055\u3063\u3066\u3001\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3059\u3002\u77f3\u5ddd\u3055\u3093\u3067\u3059\u3002 \u3000\u4eca\u65e5\u306f\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30aa\u30e9\u30af\u30eb\u3078\u63a5\u7d9a\u3001\u305d\u306e\u30b9\u30ad\u30fc\u30de\u306e\u30c6\u30fc\u30d6\u30eb\u60c5\u5831\u3092\u53d6\u5f97\u3057\u3066Treeview\u3078\u8868\u793a\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u306b\u30c1\u30e3\u30ec\u30f3\u30b8\u3057\u307e\u3057\u305f\u3002\u3044\u3084\uff5e\u3001\u3051\u3063\u3053\u3046\u6642\u9593\u304c &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.ishikawasekkei.com\/index.php\/2020\/05\/27\/python-tkinter-gui-programing-how-to-get-table-information\/\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;Python tkinter GUI\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0 \u30c6\u30fc\u30d6\u30eb\u60c5\u5831\u53d6\u5f97&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,13,2],"tags":[],"class_list":["post-1392","post","type-post","status-publish","format-standard","hentry","category-program","category-tkinter","category-blog"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.9 - aioseo.com -->\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"sTone\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.ishikawasekkei.com\/index.php\/2020\/05\/27\/python-tkinter-gui-programing-how-to-get-table-information\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.9\" \/>\n\t\t<meta property=\"og:locale\" content=\"ja_JP\" \/>\n\t\t<meta property=\"og:site_name\" content=\"\u682a\u5f0f\u4f1a\u793e \u77f3\u5ddd\u8a2d\u8a08 \u30b7\u30b9\u30c6\u30e0\u958b\u767a\u3092\u3068\u3053\u3068\u3093\u6975\u3081\u307e\u3059\uff01 | \u3068\u3044\u3046\u3053\u3068\u3067\u4e00\u7dd2\u306b\u6975\u3081\u307e\u3057\u3087\u3046\uff01\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u8ad6\u7406\u8a2d\u8a08\uff08\u696d\u52d9\u5206\u6790\uff09\u304c\u8da3\u5473\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3057\u307e\u3063\u305f\u30b7\u30b9\u30c6\u30e0\u958b\u767a\u306e\u30b9\u30da\u30b7\u30e3\u30ea\u30b9\u30c8\u3067\u3059\u3002\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0\u3082\u5f97\u610f\u3067\u3059\u3002\u30b7\u30b9\u30c6\u30e0\u306b\u304a\u3051\u308b\u69d8\u3005\u306a\u554f\u984c\u3092\u89e3\u6c7a\u3057\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u305d\u308c\u3089\u3092\u5171\u6709\u3067\u304d\u308c\u3070\u3068\u601d\u3044\u307e\u3059\u3002\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Python tkinter GUI\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0 \u30c6\u30fc\u30d6\u30eb\u60c5\u5831\u53d6\u5f97 | \u682a\u5f0f\u4f1a\u793e \u77f3\u5ddd\u8a2d\u8a08 \u30b7\u30b9\u30c6\u30e0\u958b\u767a\u3092\u3068\u3053\u3068\u3093\u6975\u3081\u307e\u3059\uff01\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.ishikawasekkei.com\/index.php\/2020\/05\/27\/python-tkinter-gui-programing-how-to-get-table-information\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/www.ishikawasekkei.com\/wp-content\/uploads\/2019\/02\/cropped-ishikawasekkei-2.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/www.ishikawasekkei.com\/wp-content\/uploads\/2019\/02\/cropped-ishikawasekkei-2.png\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2020-05-26T15:00:00+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2020-05-26T14:57:04+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Python tkinter GUI\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0 \u30c6\u30fc\u30d6\u30eb\u60c5\u5831\u53d6\u5f97 | \u682a\u5f0f\u4f1a\u793e \u77f3\u5ddd\u8a2d\u8a08 \u30b7\u30b9\u30c6\u30e0\u958b\u767a\u3092\u3068\u3053\u3068\u3093\u6975\u3081\u307e\u3059\uff01\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/www.ishikawasekkei.com\/wp-content\/uploads\/2019\/02\/cropped-ishikawasekkei-2.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.ishikawasekkei.com\\\/index.php\\\/2020\\\/05\\\/27\\\/python-tkinter-gui-programing-how-to-get-table-information\\\/#article\",\"name\":\"Python tkinter GUI\\u30d7\\u30ed\\u30b0\\u30e9\\u30df\\u30f3\\u30b0 \\u30c6\\u30fc\\u30d6\\u30eb\\u60c5\\u5831\\u53d6\\u5f97 | \\u682a\\u5f0f\\u4f1a\\u793e \\u77f3\\u5ddd\\u8a2d\\u8a08 \\u30b7\\u30b9\\u30c6\\u30e0\\u958b\\u767a\\u3092\\u3068\\u3053\\u3068\\u3093\\u6975\\u3081\\u307e\\u3059\\uff01\",\"headline\":\"Python tkinter GUI\\u30d7\\u30ed\\u30b0\\u30e9\\u30df\\u30f3\\u30b0 \\u30c6\\u30fc\\u30d6\\u30eb\\u60c5\\u5831\\u53d6\\u5f97\",\"author\":{\"@id\":\"https:\\\/\\\/www.ishikawasekkei.com\\\/index.php\\\/author\\\/admin\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.ishikawasekkei.com\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.ishikawasekkei.com\\\/wp-content\\\/uploads\\\/2020\\\/05\\\/image-64.png\",\"@id\":\"https:\\\/\\\/www.ishikawasekkei.com\\\/index.php\\\/2020\\\/05\\\/27\\\/python-tkinter-gui-programing-how-to-get-table-information\\\/#articleImage\",\"width\":1059,\"height\":409},\"datePublished\":\"2020-05-27T00:00:00+09:00\",\"dateModified\":\"2020-05-26T23:57:04+09:00\",\"inLanguage\":\"ja\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.ishikawasekkei.com\\\/index.php\\\/2020\\\/05\\\/27\\\/python-tkinter-gui-programing-how-to-get-table-information\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.ishikawasekkei.com\\\/index.php\\\/2020\\\/05\\\/27\\\/python-tkinter-gui-programing-how-to-get-table-information\\\/#webpage\"},\"articleSection\":\"Program, tkinter, \\u30d6\\u30ed\\u30b0\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.ishikawasekkei.com\\\/index.php\\\/2020\\\/05\\\/27\\\/python-tkinter-gui-programing-how-to-get-table-information\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ishikawasekkei.com#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.ishikawasekkei.com\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ishikawasekkei.com\\\/index.php\\\/category\\\/program\\\/#listItem\",\"name\":\"Program\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ishikawasekkei.com\\\/index.php\\\/category\\\/program\\\/#listItem\",\"position\":2,\"name\":\"Program\",\"item\":\"https:\\\/\\\/www.ishikawasekkei.com\\\/index.php\\\/category\\\/program\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ishikawasekkei.com\\\/index.php\\\/category\\\/program\\\/tkinter\\\/#listItem\",\"name\":\"tkinter\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ishikawasekkei.com#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ishikawasekkei.com\\\/index.php\\\/category\\\/program\\\/tkinter\\\/#listItem\",\"position\":3,\"name\":\"tkinter\",\"item\":\"https:\\\/\\\/www.ishikawasekkei.com\\\/index.php\\\/category\\\/program\\\/tkinter\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ishikawasekkei.com\\\/index.php\\\/2020\\\/05\\\/27\\\/python-tkinter-gui-programing-how-to-get-table-information\\\/#listItem\",\"name\":\"Python tkinter GUI\\u30d7\\u30ed\\u30b0\\u30e9\\u30df\\u30f3\\u30b0 \\u30c6\\u30fc\\u30d6\\u30eb\\u60c5\\u5831\\u53d6\\u5f97\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ishikawasekkei.com\\\/index.php\\\/category\\\/program\\\/#listItem\",\"name\":\"Program\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ishikawasekkei.com\\\/index.php\\\/2020\\\/05\\\/27\\\/python-tkinter-gui-programing-how-to-get-table-information\\\/#listItem\",\"position\":4,\"name\":\"Python tkinter GUI\\u30d7\\u30ed\\u30b0\\u30e9\\u30df\\u30f3\\u30b0 \\u30c6\\u30fc\\u30d6\\u30eb\\u60c5\\u5831\\u53d6\\u5f97\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ishikawasekkei.com\\\/index.php\\\/category\\\/program\\\/tkinter\\\/#listItem\",\"name\":\"tkinter\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.ishikawasekkei.com\\\/#organization\",\"name\":\"\\u682a\\u5f0f\\u4f1a\\u793e \\u77f3\\u5ddd\\u8a2d\\u8a08\",\"description\":\"\\u3068\\u3044\\u3046\\u3053\\u3068\\u3067\\u4e00\\u7dd2\\u306b\\u6975\\u3081\\u307e\\u3057\\u3087\\u3046\\uff01\\u30c7\\u30fc\\u30bf\\u30d9\\u30fc\\u30b9\\u8ad6\\u7406\\u8a2d\\u8a08\\uff08\\u696d\\u52d9\\u5206\\u6790\\uff09\\u304c\\u8da3\\u5473\\u306e\\u3088\\u3046\\u306b\\u306a\\u3063\\u3066\\u3057\\u307e\\u3063\\u305f\\u30b7\\u30b9\\u30c6\\u30e0\\u958b\\u767a\\u306e\\u30b9\\u30da\\u30b7\\u30e3\\u30ea\\u30b9\\u30c8\\u3067\\u3059\\u3002\\u30d1\\u30d5\\u30a9\\u30fc\\u30de\\u30f3\\u30b9\\u30c1\\u30e5\\u30fc\\u30cb\\u30f3\\u30b0\\u3082\\u5f97\\u610f\\u3067\\u3059\\u3002\\u30b7\\u30b9\\u30c6\\u30e0\\u306b\\u304a\\u3051\\u308b\\u69d8\\u3005\\u306a\\u554f\\u984c\\u3092\\u89e3\\u6c7a\\u3057\\u3066\\u3044\\u307e\\u3059\\u306e\\u3067\\u3001\\u305d\\u308c\\u3089\\u3092\\u5171\\u6709\\u3067\\u304d\\u308c\\u3070\\u3068\\u601d\\u3044\\u307e\\u3059\\u3002\",\"url\":\"https:\\\/\\\/www.ishikawasekkei.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.ishikawasekkei.com\\\/wp-content\\\/uploads\\\/2019\\\/02\\\/ishikawasekkei.png\",\"@id\":\"https:\\\/\\\/www.ishikawasekkei.com\\\/index.php\\\/2020\\\/05\\\/27\\\/python-tkinter-gui-programing-how-to-get-table-information\\\/#organizationLogo\",\"width\":1000,\"height\":1000},\"image\":{\"@id\":\"https:\\\/\\\/www.ishikawasekkei.com\\\/index.php\\\/2020\\\/05\\\/27\\\/python-tkinter-gui-programing-how-to-get-table-information\\\/#organizationLogo\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.ishikawasekkei.com\\\/index.php\\\/author\\\/admin\\\/#author\",\"url\":\"https:\\\/\\\/www.ishikawasekkei.com\\\/index.php\\\/author\\\/admin\\\/\",\"name\":\"sTone\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.ishikawasekkei.com\\\/index.php\\\/2020\\\/05\\\/27\\\/python-tkinter-gui-programing-how-to-get-table-information\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/2f57b28952073aaca504b61d7b66d58e91b0b7847aabadc207080755d0f507ea?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"sTone\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.ishikawasekkei.com\\\/index.php\\\/2020\\\/05\\\/27\\\/python-tkinter-gui-programing-how-to-get-table-information\\\/#webpage\",\"url\":\"https:\\\/\\\/www.ishikawasekkei.com\\\/index.php\\\/2020\\\/05\\\/27\\\/python-tkinter-gui-programing-how-to-get-table-information\\\/\",\"name\":\"Python tkinter GUI\\u30d7\\u30ed\\u30b0\\u30e9\\u30df\\u30f3\\u30b0 \\u30c6\\u30fc\\u30d6\\u30eb\\u60c5\\u5831\\u53d6\\u5f97 | \\u682a\\u5f0f\\u4f1a\\u793e \\u77f3\\u5ddd\\u8a2d\\u8a08 \\u30b7\\u30b9\\u30c6\\u30e0\\u958b\\u767a\\u3092\\u3068\\u3053\\u3068\\u3093\\u6975\\u3081\\u307e\\u3059\\uff01\",\"inLanguage\":\"ja\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.ishikawasekkei.com\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.ishikawasekkei.com\\\/index.php\\\/2020\\\/05\\\/27\\\/python-tkinter-gui-programing-how-to-get-table-information\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.ishikawasekkei.com\\\/index.php\\\/author\\\/admin\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.ishikawasekkei.com\\\/index.php\\\/author\\\/admin\\\/#author\"},\"datePublished\":\"2020-05-27T00:00:00+09:00\",\"dateModified\":\"2020-05-26T23:57:04+09:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.ishikawasekkei.com\\\/#website\",\"url\":\"https:\\\/\\\/www.ishikawasekkei.com\\\/\",\"name\":\"\\u682a\\u5f0f\\u4f1a\\u793e \\u77f3\\u5ddd\\u8a2d\\u8a08 \\u30b7\\u30b9\\u30c6\\u30e0\\u958b\\u767a\\u3092\\u3068\\u3053\\u3068\\u3093\\u6975\\u3081\\u307e\\u3059\\uff01\",\"description\":\"\\u3068\\u3044\\u3046\\u3053\\u3068\\u3067\\u4e00\\u7dd2\\u306b\\u6975\\u3081\\u307e\\u3057\\u3087\\u3046\\uff01\\u30c7\\u30fc\\u30bf\\u30d9\\u30fc\\u30b9\\u8ad6\\u7406\\u8a2d\\u8a08\\uff08\\u696d\\u52d9\\u5206\\u6790\\uff09\\u304c\\u8da3\\u5473\\u306e\\u3088\\u3046\\u306b\\u306a\\u3063\\u3066\\u3057\\u307e\\u3063\\u305f\\u30b7\\u30b9\\u30c6\\u30e0\\u958b\\u767a\\u306e\\u30b9\\u30da\\u30b7\\u30e3\\u30ea\\u30b9\\u30c8\\u3067\\u3059\\u3002\\u30d1\\u30d5\\u30a9\\u30fc\\u30de\\u30f3\\u30b9\\u30c1\\u30e5\\u30fc\\u30cb\\u30f3\\u30b0\\u3082\\u5f97\\u610f\\u3067\\u3059\\u3002\\u30b7\\u30b9\\u30c6\\u30e0\\u306b\\u304a\\u3051\\u308b\\u69d8\\u3005\\u306a\\u554f\\u984c\\u3092\\u89e3\\u6c7a\\u3057\\u3066\\u3044\\u307e\\u3059\\u306e\\u3067\\u3001\\u305d\\u308c\\u3089\\u3092\\u5171\\u6709\\u3067\\u304d\\u308c\\u3070\\u3068\\u601d\\u3044\\u307e\\u3059\\u3002\",\"inLanguage\":\"ja\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.ishikawasekkei.com\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Python tkinter GUI\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0 \u30c6\u30fc\u30d6\u30eb\u60c5\u5831\u53d6\u5f97 | \u682a\u5f0f\u4f1a\u793e \u77f3\u5ddd\u8a2d\u8a08 \u30b7\u30b9\u30c6\u30e0\u958b\u767a\u3092\u3068\u3053\u3068\u3093\u6975\u3081\u307e\u3059\uff01","description":"","canonical_url":"https:\/\/www.ishikawasekkei.com\/index.php\/2020\/05\/27\/python-tkinter-gui-programing-how-to-get-table-information\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.ishikawasekkei.com\/index.php\/2020\/05\/27\/python-tkinter-gui-programing-how-to-get-table-information\/#article","name":"Python tkinter GUI\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0 \u30c6\u30fc\u30d6\u30eb\u60c5\u5831\u53d6\u5f97 | \u682a\u5f0f\u4f1a\u793e \u77f3\u5ddd\u8a2d\u8a08 \u30b7\u30b9\u30c6\u30e0\u958b\u767a\u3092\u3068\u3053\u3068\u3093\u6975\u3081\u307e\u3059\uff01","headline":"Python tkinter GUI\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0 \u30c6\u30fc\u30d6\u30eb\u60c5\u5831\u53d6\u5f97","author":{"@id":"https:\/\/www.ishikawasekkei.com\/index.php\/author\/admin\/#author"},"publisher":{"@id":"https:\/\/www.ishikawasekkei.com\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/www.ishikawasekkei.com\/wp-content\/uploads\/2020\/05\/image-64.png","@id":"https:\/\/www.ishikawasekkei.com\/index.php\/2020\/05\/27\/python-tkinter-gui-programing-how-to-get-table-information\/#articleImage","width":1059,"height":409},"datePublished":"2020-05-27T00:00:00+09:00","dateModified":"2020-05-26T23:57:04+09:00","inLanguage":"ja","mainEntityOfPage":{"@id":"https:\/\/www.ishikawasekkei.com\/index.php\/2020\/05\/27\/python-tkinter-gui-programing-how-to-get-table-information\/#webpage"},"isPartOf":{"@id":"https:\/\/www.ishikawasekkei.com\/index.php\/2020\/05\/27\/python-tkinter-gui-programing-how-to-get-table-information\/#webpage"},"articleSection":"Program, tkinter, \u30d6\u30ed\u30b0"},{"@type":"BreadcrumbList","@id":"https:\/\/www.ishikawasekkei.com\/index.php\/2020\/05\/27\/python-tkinter-gui-programing-how-to-get-table-information\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.ishikawasekkei.com#listItem","position":1,"name":"Home","item":"https:\/\/www.ishikawasekkei.com","nextItem":{"@type":"ListItem","@id":"https:\/\/www.ishikawasekkei.com\/index.php\/category\/program\/#listItem","name":"Program"}},{"@type":"ListItem","@id":"https:\/\/www.ishikawasekkei.com\/index.php\/category\/program\/#listItem","position":2,"name":"Program","item":"https:\/\/www.ishikawasekkei.com\/index.php\/category\/program\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.ishikawasekkei.com\/index.php\/category\/program\/tkinter\/#listItem","name":"tkinter"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.ishikawasekkei.com#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.ishikawasekkei.com\/index.php\/category\/program\/tkinter\/#listItem","position":3,"name":"tkinter","item":"https:\/\/www.ishikawasekkei.com\/index.php\/category\/program\/tkinter\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.ishikawasekkei.com\/index.php\/2020\/05\/27\/python-tkinter-gui-programing-how-to-get-table-information\/#listItem","name":"Python tkinter GUI\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0 \u30c6\u30fc\u30d6\u30eb\u60c5\u5831\u53d6\u5f97"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.ishikawasekkei.com\/index.php\/category\/program\/#listItem","name":"Program"}},{"@type":"ListItem","@id":"https:\/\/www.ishikawasekkei.com\/index.php\/2020\/05\/27\/python-tkinter-gui-programing-how-to-get-table-information\/#listItem","position":4,"name":"Python tkinter GUI\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0 \u30c6\u30fc\u30d6\u30eb\u60c5\u5831\u53d6\u5f97","previousItem":{"@type":"ListItem","@id":"https:\/\/www.ishikawasekkei.com\/index.php\/category\/program\/tkinter\/#listItem","name":"tkinter"}}]},{"@type":"Organization","@id":"https:\/\/www.ishikawasekkei.com\/#organization","name":"\u682a\u5f0f\u4f1a\u793e \u77f3\u5ddd\u8a2d\u8a08","description":"\u3068\u3044\u3046\u3053\u3068\u3067\u4e00\u7dd2\u306b\u6975\u3081\u307e\u3057\u3087\u3046\uff01\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u8ad6\u7406\u8a2d\u8a08\uff08\u696d\u52d9\u5206\u6790\uff09\u304c\u8da3\u5473\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3057\u307e\u3063\u305f\u30b7\u30b9\u30c6\u30e0\u958b\u767a\u306e\u30b9\u30da\u30b7\u30e3\u30ea\u30b9\u30c8\u3067\u3059\u3002\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0\u3082\u5f97\u610f\u3067\u3059\u3002\u30b7\u30b9\u30c6\u30e0\u306b\u304a\u3051\u308b\u69d8\u3005\u306a\u554f\u984c\u3092\u89e3\u6c7a\u3057\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u305d\u308c\u3089\u3092\u5171\u6709\u3067\u304d\u308c\u3070\u3068\u601d\u3044\u307e\u3059\u3002","url":"https:\/\/www.ishikawasekkei.com\/","logo":{"@type":"ImageObject","url":"https:\/\/www.ishikawasekkei.com\/wp-content\/uploads\/2019\/02\/ishikawasekkei.png","@id":"https:\/\/www.ishikawasekkei.com\/index.php\/2020\/05\/27\/python-tkinter-gui-programing-how-to-get-table-information\/#organizationLogo","width":1000,"height":1000},"image":{"@id":"https:\/\/www.ishikawasekkei.com\/index.php\/2020\/05\/27\/python-tkinter-gui-programing-how-to-get-table-information\/#organizationLogo"}},{"@type":"Person","@id":"https:\/\/www.ishikawasekkei.com\/index.php\/author\/admin\/#author","url":"https:\/\/www.ishikawasekkei.com\/index.php\/author\/admin\/","name":"sTone","image":{"@type":"ImageObject","@id":"https:\/\/www.ishikawasekkei.com\/index.php\/2020\/05\/27\/python-tkinter-gui-programing-how-to-get-table-information\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/2f57b28952073aaca504b61d7b66d58e91b0b7847aabadc207080755d0f507ea?s=96&d=mm&r=g","width":96,"height":96,"caption":"sTone"}},{"@type":"WebPage","@id":"https:\/\/www.ishikawasekkei.com\/index.php\/2020\/05\/27\/python-tkinter-gui-programing-how-to-get-table-information\/#webpage","url":"https:\/\/www.ishikawasekkei.com\/index.php\/2020\/05\/27\/python-tkinter-gui-programing-how-to-get-table-information\/","name":"Python tkinter GUI\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0 \u30c6\u30fc\u30d6\u30eb\u60c5\u5831\u53d6\u5f97 | \u682a\u5f0f\u4f1a\u793e \u77f3\u5ddd\u8a2d\u8a08 \u30b7\u30b9\u30c6\u30e0\u958b\u767a\u3092\u3068\u3053\u3068\u3093\u6975\u3081\u307e\u3059\uff01","inLanguage":"ja","isPartOf":{"@id":"https:\/\/www.ishikawasekkei.com\/#website"},"breadcrumb":{"@id":"https:\/\/www.ishikawasekkei.com\/index.php\/2020\/05\/27\/python-tkinter-gui-programing-how-to-get-table-information\/#breadcrumblist"},"author":{"@id":"https:\/\/www.ishikawasekkei.com\/index.php\/author\/admin\/#author"},"creator":{"@id":"https:\/\/www.ishikawasekkei.com\/index.php\/author\/admin\/#author"},"datePublished":"2020-05-27T00:00:00+09:00","dateModified":"2020-05-26T23:57:04+09:00"},{"@type":"WebSite","@id":"https:\/\/www.ishikawasekkei.com\/#website","url":"https:\/\/www.ishikawasekkei.com\/","name":"\u682a\u5f0f\u4f1a\u793e \u77f3\u5ddd\u8a2d\u8a08 \u30b7\u30b9\u30c6\u30e0\u958b\u767a\u3092\u3068\u3053\u3068\u3093\u6975\u3081\u307e\u3059\uff01","description":"\u3068\u3044\u3046\u3053\u3068\u3067\u4e00\u7dd2\u306b\u6975\u3081\u307e\u3057\u3087\u3046\uff01\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u8ad6\u7406\u8a2d\u8a08\uff08\u696d\u52d9\u5206\u6790\uff09\u304c\u8da3\u5473\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3057\u307e\u3063\u305f\u30b7\u30b9\u30c6\u30e0\u958b\u767a\u306e\u30b9\u30da\u30b7\u30e3\u30ea\u30b9\u30c8\u3067\u3059\u3002\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0\u3082\u5f97\u610f\u3067\u3059\u3002\u30b7\u30b9\u30c6\u30e0\u306b\u304a\u3051\u308b\u69d8\u3005\u306a\u554f\u984c\u3092\u89e3\u6c7a\u3057\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u305d\u308c\u3089\u3092\u5171\u6709\u3067\u304d\u308c\u3070\u3068\u601d\u3044\u307e\u3059\u3002","inLanguage":"ja","publisher":{"@id":"https:\/\/www.ishikawasekkei.com\/#organization"}}]},"og:locale":"ja_JP","og:site_name":"\u682a\u5f0f\u4f1a\u793e \u77f3\u5ddd\u8a2d\u8a08 \u30b7\u30b9\u30c6\u30e0\u958b\u767a\u3092\u3068\u3053\u3068\u3093\u6975\u3081\u307e\u3059\uff01 | \u3068\u3044\u3046\u3053\u3068\u3067\u4e00\u7dd2\u306b\u6975\u3081\u307e\u3057\u3087\u3046\uff01\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u8ad6\u7406\u8a2d\u8a08\uff08\u696d\u52d9\u5206\u6790\uff09\u304c\u8da3\u5473\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3057\u307e\u3063\u305f\u30b7\u30b9\u30c6\u30e0\u958b\u767a\u306e\u30b9\u30da\u30b7\u30e3\u30ea\u30b9\u30c8\u3067\u3059\u3002\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0\u3082\u5f97\u610f\u3067\u3059\u3002\u30b7\u30b9\u30c6\u30e0\u306b\u304a\u3051\u308b\u69d8\u3005\u306a\u554f\u984c\u3092\u89e3\u6c7a\u3057\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u305d\u308c\u3089\u3092\u5171\u6709\u3067\u304d\u308c\u3070\u3068\u601d\u3044\u307e\u3059\u3002","og:type":"article","og:title":"Python tkinter GUI\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0 \u30c6\u30fc\u30d6\u30eb\u60c5\u5831\u53d6\u5f97 | \u682a\u5f0f\u4f1a\u793e \u77f3\u5ddd\u8a2d\u8a08 \u30b7\u30b9\u30c6\u30e0\u958b\u767a\u3092\u3068\u3053\u3068\u3093\u6975\u3081\u307e\u3059\uff01","og:url":"https:\/\/www.ishikawasekkei.com\/index.php\/2020\/05\/27\/python-tkinter-gui-programing-how-to-get-table-information\/","og:image":"https:\/\/www.ishikawasekkei.com\/wp-content\/uploads\/2019\/02\/cropped-ishikawasekkei-2.png","og:image:secure_url":"https:\/\/www.ishikawasekkei.com\/wp-content\/uploads\/2019\/02\/cropped-ishikawasekkei-2.png","article:published_time":"2020-05-26T15:00:00+00:00","article:modified_time":"2020-05-26T14:57:04+00:00","twitter:card":"summary","twitter:title":"Python tkinter GUI\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0 \u30c6\u30fc\u30d6\u30eb\u60c5\u5831\u53d6\u5f97 | \u682a\u5f0f\u4f1a\u793e \u77f3\u5ddd\u8a2d\u8a08 \u30b7\u30b9\u30c6\u30e0\u958b\u767a\u3092\u3068\u3053\u3068\u3093\u6975\u3081\u307e\u3059\uff01","twitter:image":"https:\/\/www.ishikawasekkei.com\/wp-content\/uploads\/2019\/02\/cropped-ishikawasekkei-2.png"},"aioseo_meta_data":{"post_id":"1392","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"location":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2020-12-21 03:56:14","updated":"2025-07-16 15:38:58","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.ishikawasekkei.com\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.ishikawasekkei.com\/index.php\/category\/program\/\" title=\"Program\">Program<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.ishikawasekkei.com\/index.php\/category\/program\/tkinter\/\" title=\"tkinter\">tkinter<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tPython tkinter GUI\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0 \u30c6\u30fc\u30d6\u30eb\u60c5\u5831\u53d6\u5f97\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.ishikawasekkei.com"},{"label":"Program","link":"https:\/\/www.ishikawasekkei.com\/index.php\/category\/program\/"},{"label":"tkinter","link":"https:\/\/www.ishikawasekkei.com\/index.php\/category\/program\/tkinter\/"},{"label":"Python tkinter GUI\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0 \u30c6\u30fc\u30d6\u30eb\u60c5\u5831\u53d6\u5f97","link":"https:\/\/www.ishikawasekkei.com\/index.php\/2020\/05\/27\/python-tkinter-gui-programing-how-to-get-table-information\/"}],"_links":{"self":[{"href":"https:\/\/www.ishikawasekkei.com\/index.php\/wp-json\/wp\/v2\/posts\/1392","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ishikawasekkei.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ishikawasekkei.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ishikawasekkei.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ishikawasekkei.com\/index.php\/wp-json\/wp\/v2\/comments?post=1392"}],"version-history":[{"count":5,"href":"https:\/\/www.ishikawasekkei.com\/index.php\/wp-json\/wp\/v2\/posts\/1392\/revisions"}],"predecessor-version":[{"id":1398,"href":"https:\/\/www.ishikawasekkei.com\/index.php\/wp-json\/wp\/v2\/posts\/1392\/revisions\/1398"}],"wp:attachment":[{"href":"https:\/\/www.ishikawasekkei.com\/index.php\/wp-json\/wp\/v2\/media?parent=1392"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ishikawasekkei.com\/index.php\/wp-json\/wp\/v2\/categories?post=1392"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ishikawasekkei.com\/index.php\/wp-json\/wp\/v2\/tags?post=1392"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}