import and display a .txt file in wxpython
<p>I try to import a .txt file and display its values into a wxpython Panel. </p>

<p>But first I need to be able to import the data, and I am stuck at that point. As a test, I tryed : </p>

<pre><code>#!/usr/bin/env python
#.*. coding: utf-8 .*.

f = open('data.txt', "r")
lines = f.readlines()

for line in lines:
    words = line.split("-") 
</code></pre>

<p>when I run it, I don't get an error but nothing is happening in the shell.
Thank you for your help! </p>