Neamtu Dan
2014-10-17 14:05:21 UTC
Hi all,
I am struggling to find a way so that my wxPython based application would
display column based outputs nicely into TextCtrl areas. I would like to
get something like this:
show cable modem 0023.be36.8a98 phy
MAC Address I/F Sid USPwr USMER Timing
DSPwr DSMER Mode DOCSIS
(dBmV)
(SNR) Offset (dBmV) (SNR) Prov
(dB) (dB)
0023.be36.8a98 C7/0/1/U0 761 23.25 38.31 1499
0.00 ----- atdma* 1.1
0023.be36.8a98 C7/0/1/U1 761 23.50 38.36 1508
0.00 ----- atdma* 1.1
Whereas I get this:
#show cable modem 0023.be36.8a98 phy
MAC Address I/F Sid USPwr USMER Timing DSPwr DSMER Mode
DOCSIS
(dBmV) (SNR) Offset (dBmV) (SNR)
Prov
(dB) (dB)
0023.be36.8a98 C7/0/1/U0 761 23.25 38.31 1499 0.00 ----- atdma*
1.1
0023.be36.8a98 C7/0/1/U1 761 23.50 38.36 1508 0.00 ----- atdma*
1.1
Basically, for some reason the spacing between elements of columns is
changed.
Now, I know this is probably an application dependent behavior, I get the
same messed up output when pasting into Word. I do get the proper one when
pasting into notepad like applications, so probably there is a certain
mechanism integrated into those that takes care of formatting. I'm not an
expert on text formatting, neither in wxPython, but it would really be
great if I could manage to achieve this somehow.
Could you point me to any documentation or other ideas that might help?
Thanks,
Dan
I am struggling to find a way so that my wxPython based application would
display column based outputs nicely into TextCtrl areas. I would like to
get something like this:
show cable modem 0023.be36.8a98 phy
MAC Address I/F Sid USPwr USMER Timing
DSPwr DSMER Mode DOCSIS
(dBmV)
(SNR) Offset (dBmV) (SNR) Prov
(dB) (dB)
0023.be36.8a98 C7/0/1/U0 761 23.25 38.31 1499
0.00 ----- atdma* 1.1
0023.be36.8a98 C7/0/1/U1 761 23.50 38.36 1508
0.00 ----- atdma* 1.1
Whereas I get this:
#show cable modem 0023.be36.8a98 phy
MAC Address I/F Sid USPwr USMER Timing DSPwr DSMER Mode
DOCSIS
(dBmV) (SNR) Offset (dBmV) (SNR)
Prov
(dB) (dB)
0023.be36.8a98 C7/0/1/U0 761 23.25 38.31 1499 0.00 ----- atdma*
1.1
0023.be36.8a98 C7/0/1/U1 761 23.50 38.36 1508 0.00 ----- atdma*
1.1
Basically, for some reason the spacing between elements of columns is
changed.
Now, I know this is probably an application dependent behavior, I get the
same messed up output when pasting into Word. I do get the proper one when
pasting into notepad like applications, so probably there is a certain
mechanism integrated into those that takes care of formatting. I'm not an
expert on text formatting, neither in wxPython, but it would really be
great if I could manage to achieve this somehow.
Could you point me to any documentation or other ideas that might help?
Thanks,
Dan
--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wxpython-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wxpython-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.