{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "178cb265",
   "metadata": {},
   "source": [
    "# 07-15 · Wyrównanie i czcionka\n",
    "\n",
    "Praktyka do sekcji [„Wyrównanie i czcionka”"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "101f30d5",
   "metadata": {},
   "source": [
    "## Cel\n",
    "\n",
    "Mistrz align i font w write()."
   ]
  },
  {
   "cell_type": "markdown",
   "id": "596de5b6",
   "metadata": {},
   "source": [
    "## Ustawienie (wykonać raz)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "635be271",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-08-16T15:16:47.998691Z",
     "iopub.status.busy": "2026-08-16T15:16:47.998497Z",
     "iopub.status.idle": "2026-08-16T15:16:48.178120Z",
     "shell.execute_reply": "2026-08-16T15:16:48.177554Z"
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Окно Turtle готово.\n"
     ]
    }
   ],
   "source": [
    "import turtle\n",
    "\n",
    "screen = turtle.Screen()\n",
    "artist = turtle.Turtle()\n",
    "artist.pensize(3)\n",
    "artist.pencolor(\"#5B24F9\")\n",
    "print(\"Окно Turtle готово.\")"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "87e2ed06",
   "metadata": {},
   "source": [
    "## Sprawa robocza\n",
    "\n",
    "Trzy wyrównania w jednym momencie."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "ac06300c",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-08-16T15:16:48.179108Z",
     "iopub.status.busy": "2026-08-16T15:16:48.178998Z",
     "iopub.status.idle": "2026-08-16T15:16:48.277379Z",
     "shell.execute_reply": "2026-08-16T15:16:48.276696Z"
    }
   },
   "outputs": [],
   "source": [
    "artist.reset()\n",
    "artist.hideturtle()\n",
    "artist.penup()\n",
    "artist.dot(6)\n",
    "artist.write(\"center\", align=\"center\", font=(\"Arial\", 14, \"normal\"))"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "590a1ca8",
   "metadata": {},
   "source": [
    "## Podstawowa praktyka zadań ★\n",
    "\n",
    "Wydrukuj tekst \"Cartesian\" dużym (24) pogrubieniem Arial czcionką wyrównaną po prawej stronie (align=\"right\")."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "id": "412d37b2",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-08-16T15:16:48.278569Z",
     "iopub.status.busy": "2026-08-16T15:16:48.278450Z",
     "iopub.status.idle": "2026-08-16T15:16:48.334495Z",
     "shell.execute_reply": "2026-08-16T15:16:48.334130Z"
    }
   },
   "outputs": [],
   "source": [
    "artist.reset()\n",
    "artist.hideturtle()\n",
    "artist.penup()\n",
    "artist.write(\"Cartesian\", align=\"right\", font=(\"Arial\", 24, \"bold\"))"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "b451bf87",
   "metadata": {},
   "source": [
    "## Ukończenie (wykonaj raz, na samym końcu)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "id": "152f6a3f",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-08-16T15:16:48.335856Z",
     "iopub.status.busy": "2026-08-16T15:16:48.335737Z",
     "iopub.status.idle": "2026-08-16T15:16:48.338904Z",
     "shell.execute_reply": "2026-08-16T15:16:48.338349Z"
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Окно Turtle закрыто.\n"
     ]
    }
   ],
   "source": [
    "screen.bye()\n",
    "print(\"Окно Turtle закрыто.\")"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Cartesian Python 3.14",
   "language": "python",
   "name": "cartesian-python314"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.14.6"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
