質問するログイン新規登録

質問編集履歴

2

2020/10/07 13:18

投稿

MATLIB
MATLIB

スコア27

title CHANGED
File without changes
body CHANGED
@@ -1,6 +1,5 @@
1
1
  下記(Aファイル)一覧で選択した行の値はtxt_idとtxt_nameで取得できています。
2
- def create_widgets(self):
2
+
3
- # 略
4
3
  def selected(self):
5
4
  for item in tree.selection():
6
5
  print(item, tree.item(item))

1

2020/10/07 13:17

投稿

MATLIB
MATLIB

スコア27

title CHANGED
File without changes
body CHANGED
@@ -22,6 +22,7 @@
22
22
  from tkinter import ttk
23
23
  from tkinter import font
24
24
  import psycopg2
25
+ import Bファイル
25
26
 
26
27
  # connect postgreSQL
27
28
  conn = psycopg2.connect(必要な情報)
@@ -135,6 +136,7 @@
135
136
  import tkinter
136
137
  from tkinter import font
137
138
  import tkinter as tk
139
+ import Aファイル
138
140
 
139
141
  class gamen2(tkinter.Frame):
140
142
  def __init__(self, master=None, **kwargs):