回答編集履歴

2

コード修正

2020/03/30 16:53

投稿

teamikl
teamikl

スコア8760

test CHANGED
@@ -100,9 +100,17 @@
100
100
 
101
101
  ```tcl
102
102
 
103
- set H [winfo reqheight $popdown]
103
+ set H [winfo reqheight $popdown]
104
104
 
105
- if {$y + $h + $H > [winfo screenheight $popdown]}
105
+ if {$y + $h + $H > [winfo screenheight $popdown]} {
106
+
107
+ set Y [expr {$y - $H}]
108
+
109
+ } else {
110
+
111
+ set Y [expr {$y + $h}]
112
+
113
+ }
106
114
 
107
115
  ```
108
116
 

1

markdownのコードに言語を追加

2020/03/30 16:53

投稿

teamikl
teamikl

スコア8760

test CHANGED
@@ -98,7 +98,7 @@
98
98
 
99
99
 
100
100
 
101
- ```
101
+ ```tcl
102
102
 
103
103
  set H [winfo reqheight $popdown]
104
104
 
@@ -132,7 +132,7 @@
132
132
 
133
133
 
134
134
 
135
- ```
135
+ ```python
136
136
 
137
137
  import tkinter as tk
138
138