portable gui for ptpython shellglasnost.itcarlow.ie/~softeng4/c00184799...inga e/project2nds python3...

13
PORTABLE GUI FOR PTPYTHON SHELL Student Name: Inga Melkerte Student ID: C00184799 Supervisor: Paul Barry Date: 28th February 2017

Upload: others

Post on 25-Aug-2020

6 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: PORTABLE GUI FOR PTPYTHON SHELLglasnost.itcarlow.ie/~softeng4/C00184799...Inga e/project2ndS python3 line numbers10. py [F2] Menu - Clear Screen cpython 3.5.2 New print [F4] Emacs

PORTABLE GUI FOR PTPYTHON SHELL

Student Name: Inga MelkerteStudent ID: C00184799Supervisor: Paul BarryDate: 28th February 2017

Page 2: PORTABLE GUI FOR PTPYTHON SHELLglasnost.itcarlow.ie/~softeng4/C00184799...Inga e/project2ndS python3 line numbers10. py [F2] Menu - Clear Screen cpython 3.5.2 New print [F4] Emacs

Reminder - what the project is about?

❖ Build GUI framework for ptpython shell❖ Similar to IDLE ❖ Ptpython cool features

Page 3: PORTABLE GUI FOR PTPYTHON SHELLglasnost.itcarlow.ie/~softeng4/C00184799...Inga e/project2ndS python3 line numbers10. py [F2] Menu - Clear Screen cpython 3.5.2 New print [F4] Emacs

Implement prompt from prompt-toolkit into GUI

Plan from the last iteration

Page 4: PORTABLE GUI FOR PTPYTHON SHELLglasnost.itcarlow.ie/~softeng4/C00184799...Inga e/project2ndS python3 line numbers10. py [F2] Menu - Clear Screen cpython 3.5.2 New print [F4] Emacs
Page 5: PORTABLE GUI FOR PTPYTHON SHELLglasnost.itcarlow.ie/~softeng4/C00184799...Inga e/project2ndS python3 line numbers10. py [F2] Menu - Clear Screen cpython 3.5.2 New print [F4] Emacs
Page 6: PORTABLE GUI FOR PTPYTHON SHELLglasnost.itcarlow.ie/~softeng4/C00184799...Inga e/project2ndS python3 line numbers10. py [F2] Menu - Clear Screen cpython 3.5.2 New print [F4] Emacs

Plan B

❖ Changed strategy and started to build simple python REPL (command-line)

❖ Implemented this REPL into simple GUI to understand READ-EVAL-PRINT-LOOP

Page 7: PORTABLE GUI FOR PTPYTHON SHELLglasnost.itcarlow.ie/~softeng4/C00184799...Inga e/project2ndS python3 line numbers10. py [F2] Menu - Clear Screen cpython 3.5.2 New print [F4] Emacs

Basic GUI for python REPL

✓ Redirect output from command-line to GUI

✓ Redirect input from simple entry box

✓ Added textbox and implemented multi-line editing

Page 8: PORTABLE GUI FOR PTPYTHON SHELLglasnost.itcarlow.ie/~softeng4/C00184799...Inga e/project2ndS python3 line numbers10. py [F2] Menu - Clear Screen cpython 3.5.2 New print [F4] Emacs

✓ Integrated notebook with scrollbar, line numbers , tabs

✓ Multiline editing✓ Open, Save and

Run File✓ Clear Screen✓ Open New Tab✓ Handles

exceptions

Page 9: PORTABLE GUI FOR PTPYTHON SHELLglasnost.itcarlow.ie/~softeng4/C00184799...Inga e/project2ndS python3 line numbers10. py [F2] Menu - Clear Screen cpython 3.5.2 New print [F4] Emacs

✓ Changed strategy and started to build simple GUI for python to understand READ-EVAL-PRINT-LOOP

✓ Build basic GUI for python REPL

✓ With simple entry box, then added textbox with multiline editing

✓ Implemented notebook with scrollbar, line numbers , tabs

Review - what is done from last iteration

Page 10: PORTABLE GUI FOR PTPYTHON SHELLglasnost.itcarlow.ie/~softeng4/C00184799...Inga e/project2ndS python3 line numbers10. py [F2] Menu - Clear Screen cpython 3.5.2 New print [F4] Emacs

Currently working on

Implementing ptpython prompt into GUI

Page 11: PORTABLE GUI FOR PTPYTHON SHELLglasnost.itcarlow.ie/~softeng4/C00184799...Inga e/project2ndS python3 line numbers10. py [F2] Menu - Clear Screen cpython 3.5.2 New print [F4] Emacs

✓ Embedded Ptpython

✓ Output is redirected into gui text box

Page 12: PORTABLE GUI FOR PTPYTHON SHELLglasnost.itcarlow.ie/~softeng4/C00184799...Inga e/project2ndS python3 line numbers10. py [F2] Menu - Clear Screen cpython 3.5.2 New print [F4] Emacs

Plan for next iteration

❖ Implement Ptpython into GUI

❖ Improve GUI framework

❖ Testing

Page 13: PORTABLE GUI FOR PTPYTHON SHELLglasnost.itcarlow.ie/~softeng4/C00184799...Inga e/project2ndS python3 line numbers10. py [F2] Menu - Clear Screen cpython 3.5.2 New print [F4] Emacs