outfile = open("C:\\myfile.txt", "w")
outfile.write(str(eg.result) + "\n")
Now it looks like maybe a little better.Bitmonster wrote:... dialog gets to tall. Maybe the options for the encoding errors can be combined, since it will seldom make a difference if the error comes from the encoding or decoding.
Well, this is not a problem to do. But HexDump choice I leave as is, because the conversion to hexadecimal view pass till after the encoding.Bitmonster wrote:I think we can slim the dialog even more, by using only a wx.Choice for the encoding and adding "utf-8" and "current system codepage" (and maybe "hex dump" also) to the beginning of the list.
Of course, I know that the user can not write any name coding. I had two reasons why I used wxComboBox and not wxChoice:Bitmonster wrote:Since there is only a fixed number of encodings available in Python, it doesn't make much sense to use a wx.ComboBox.
Users browsing this forum: No registered users and 2 guests