File: text2binary.py

package info (click to toggle)
python-easygui 0.98.1-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,492 kB
  • sloc: python: 3,242; makefile: 151; xml: 120
file content (12 lines) | stat: -rw-r--r-- 309 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
__author__ = 'Robert'
"""
from:
http://stackoverflow.com/questions/27393751/converting-text-to-binary-2-part-issue
"""
import sys

sys.path.append('..')
import easygui

Plain = easygui.textbox(msg='Enter Message', title='OTP', text=u'Hi', codebox=1)
print(repr(Plain)) #If there is no trailing newline, its OK