This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM fedora:43 | |
| ARG USER_UID=1001 | |
| RUN dnf -y install unzip git \ | |
| && curl -fsSL https://cli.coderabbit.ai/install.sh > /tmp/coderabbit.sh \ | |
| && /bin/sh /tmp/coderabbit.sh \ | |
| && mv $HOME/.local/bin/coderabbit /bin/coderabbit \ | |
| && git config --system --add safe.directory /workdir \ | |
| && useradd -u ${USER_UID} -m coderabbit \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Imports tkinter and constants | |
| import tkinter | |
| from tkinter.constants import * | |
| # addition function | |
| def add(): | |
| a = float(num1In.get("1.0",END)) | |
| b = float(num2In.get("1.0",END)) | |
| ansOut['text'] = str(a + b) |