Giter VIP home page Giter VIP logo

python-paint's Introduction

python-paint's People

Contributors

ppizarror avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

python-paint's Issues

Problema con las rutas relativas en Windows

Hola, Hay un problema al ejecutar el archivo en Windows a causa de las rutas relativas que se usan.

El tracelog es el siguiente:

Traceback (most recent call last): File "C:\Users\OP231\AppData\Local\Programs\Python\Python38-32\lib\tkinter\__init__.py", line 1883, in __call__ return self.func(*args) File "h:\OP231\Documents\Programación\Python\python-paint\Paint.py", line 224, in <lambda> Button(ActiveColor,text="Color principal",relief=FLAT,command=lambda:self.cambiarColor("activo"),width=10).pack() File "h:\OP231\Documents\Programación\Python\python-paint\Paint.py", line 316, in cambiarColor a = pyv("Cambiar color",DATAICONS+"color.ico","cambiarcolor",(280,440)) File "h:\OP231\Documents\Programación\Python\python-paint\pyv.py", line 27, in __init__ self.root.iconbitmap(bitmap=icon) File "C:\Users\OP231\AppData\Local\Programs\Python\Python38-32\lib\tkinter\__init__.py", line 2071, in wm_iconbitmap return self.tk.call('wm', 'iconbitmap', self._w, bitmap)

Lo he solucionado con el siguiente trozo de código en la declaración de Constantes de carpetas:

import os DIRNAME = os.path.dirname(__file__) DATAFOLDER = os.path.join(DIRNAME, 'Data\\')

Lo demás sigue igual.

Voy a intentar crear un fork de tu proyecto.
Por cierto, felicidades, está muy bien :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.