OSDN Git Service
(root)
/
gwit
/
gwit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d69886
)
bug fix: destroy twitpic upload dialog after get filename
author
Hirotaka Kawata
<hktechno@hotmail.com>
Fri, 25 Jun 2010 20:21:00 +0000
(
05:21
+0900)
committer
Hirotaka Kawata
<hktechno@hotmail.com>
Fri, 25 Jun 2010 20:21:00 +0000
(
05:21
+0900)
main.py
patch
|
blob
|
history
diff --git
a/main.py
b/main.py
index
6536529
..
7da0b3f
100644
(file)
--- a/
main.py
+++ b/
main.py
@@
-249,10
+249,11
@@
class Main:
dialog.add_button(gtk.STOCK_OPEN, gtk.RESPONSE_OK)
dialog.add_button(gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL)
ret = dialog.run()
+ filename = dialog.get_filename()
dialog.destroy()
if ret == gtk.RESPONSE_OK:
- f = open(
dialog.get_filename()
)
+ f = open(
filename
)
message = self.get_textview()
res = self.twitter.twitpic.upload(f, message)
self.add_textview(" %s" % res["url"])