chriskiehl / Gooey

Turn (almost) any Python command line program into a full GUI application with one line
MIT License
20.69k stars 1.02k forks source link

ModuleNotFoundError: No module named 'rewx' #899

Closed Haleshot closed 11 months ago

Haleshot commented 11 months ago

Thorough description of the problem

Minimal code example

'''
A Gooey example showing use of richtext display in the console pannel.
'''

from gooey import Gooey, GooeyParser
from colored import stylize, attr, fg

@Gooey(richtext_controls=True, auto_start=True)
def main():
    parser = GooeyParser(description='Just display the console')

    parser.parse_args()
    print(stylize("This is bold.", attr("bold")))
    print(stylize("This is underlined.", attr("underlined")))
    print(stylize("This is green.", fg("green")))
    print(stylize("This is red.", fg("red")))
    print(stylize("This is blue and bold.", fg("blue") + attr("bold")))

if __name__ == '__main__':
    main()
Haleshot commented 11 months ago

The issue was resolved on installing wxPython via: pip install -U wxPython

Recommended to use a venv from the start and then install requirements.txt