XXXXXXXX@XXXXXXXX wrote:
tkinter を使って tkFileDialog の askopenfilename でファイルをダブル
クリックしてもファイル名がとりこめません。
環境
VirtualBox3.0.4
Vine4.1 や Fedora6-11 Ubuntu8.10/9.04 では問題無く動作します。
#!/usr/bin/python
# -*- coding: utf -*-
import sys, os, time, re, locale, string
from Tkinter import *
from tkFileDialog import *
class Test:
def __init__(self):
self.tk = Tk()
self.filename = askopenfilename()
if not self.filename:
return
file = open(self.filename, 'r')
while TRUE:
line=file.readline()
if not line:
break
print(line)
file.close()
if __name__ == "__main__":
test = Test()
== このレポートの詳細は以下の通りです ==
レポート ID : 749
レポート URL : http://bts.vinelinux.org/guest.cgi?project=VineLinux&action=view_report&id=749
分類 : バグ
Vine ver. : 5.0
関連パッケージ : tkinter python
状態 : 新規
優先度 : 中
重大度 : 普通
担当者 : 未定
# あなたが、このようなメッセージに無関係である場合には、
# 管理者 <Vine@xxxxxxxxxxxxx> までご連絡ください。
--
Bug Tracking System 影舞 0.8.6.
http://www.daifukuya.com/kagemai/