Welcome to Code Forum!

Join a community that supports you and your coding journey from day one. We strive to be a friendly, supportive community that empowers everyone to be better developers. By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Search results

  1. menator01

    Python Python Guessing Game Program with Error - Assistance Needed

    Here is a link to the share section of the forum of some code I wrote a while back. It's a number guessing game using tkinter. https://codeforum.org/threads/number-guessing-with-tkinter.6928/#post-25816
  2. menator01

    Number guessing with tkinter

    A simple number guessing games with tkinter. I wrote this code a while back practicing with tkinter ''' Tkinter Number Guessing Game Guess the random number between 1 and 100 ''' import tkinter as tk from random import randint class Model: ''' Model class handles comparison...
  3. menator01

    Simple pygame input box with cursor and character counter

    # Do the imports import pygame from time import time # Initiate pygame pygame.init() # Create the screen surface and window caption size = (1024, 720) screen = pygame.display.set_mode(size) pygame.display.set_caption('Pygame tester') # Set variable for clock clock = pygame.time.Clock() # Set...
  4. menator01

    PyQt5 Music Player

    Thought I would post a project from a while back. Requires: PyQt5 mutagen requests #! /usr/bin/env python3.9 # PtQt5 Music Player # Copyright (C) 2021 menator01 # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as...
  5. menator01

    CSS Row Height

    That why I said you may have to adjust the 100%. For my screen 97% done it. But everybody screen size is not the same. Note: I don't know if this is a typo or not but, in your html you have <container>. Is this supposed to be a div with a container class? Here the settings I have and what it...
  6. menator01

    CSS Row Height

    Add html, body { height: 100%; } to your css. You will probably want to adjust.
  7. menator01

    Python [OOP] I can't create an object - I got an invalid syntax error.

    I tried your code and kept getting lots of errors. Here is a simple example for you to work with. # Do the imports from random import sample import string class Generate: ''' Generate uses letters, digits, and special characters to generate a 8 character password '''...
  8. menator01

    Resetting a radio button to defaults?

    This is what I have and it works. I removed the class because I have nothing in it. <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" href="style.css">...
  9. menator01

    Resetting a radio button to defaults?

    remove all:initial; and the this style="un_preserve_radio" should be class="un_preserve_radio"
  10. menator01

    Python [Flask-Moment] I can’t show the current time

    Did you include this in the head tags? {{ moment.include_moment() }} index.html {% extends 'base.html' %} {% block title %}My Site{% endblock %} {% block content %} <p> Current - {{moment().format('LLL')}} </p> <p> Passed - {{moment().fromNow(refresh=True)}} </p> {% endblock %}...
  11. menator01

    Fun activity Say hello... in a coding language!

    words = ['Hello,', 'hi.','How are yous?'] if 'Hello' in words: print(' '.join(words))
  12. menator01

    How do I align my text to my image?

    You're welcome
  13. menator01

    How do I align my text to my image?

    .logo img { position: relative; top: 40px; left: 20%; }
  14. menator01

    How do I align my text to my image?

    Are you wanting it to align with the list? Something like this?
  15. menator01

    Node.JS Express js not working

    The only way I could get it to run through geany was switching to the terminal. I think it's because of a path problem. At least for me anyway. I had to use another port other than 443. That port is already in use. I followed the docs her Installing Express
  16. menator01

    Python Pygame pong part 5 - (Start Page)

    In the 5th and final part of the tutorial we will create a start page for our pong game. The start page will present some text an image and instructions on how to start the game. # Class creates a start/title page class Page: def title(self): ''' title method creates a start page...
  17. menator01

    Python Simple Tkinter Calculator Part 3 (Build methods and bind buttons)

    Simple Tkinter Calculator Part 3 In part3 we will: Create methods in our Controller class Bind the buttons to the methods Create a simple validation Create methods def valid_input(self,arg): ''' Method for validating input ''' if arg.isalpha() or arg == '='...
  18. menator01

    Python Pygame pong part 4 - Scoreboard

    In part 4 we will create a scoreboard placed at the top of the pong table In the while loop add # Draw the scoreboard to screen board = pygame.Surface([window[0], 40]) board.fill((60,60,60)) screen.blit(board, (0,0)) # Add a font font = pygame.font.Font(None, 24)...
  19. menator01

    Python Pygame pong part 3 - (The Ball)

    In part 3 we will be creating the ball class Give the ball a size Give the ball a color Give the ball a random velocity and direction when colliding with the paddles or wall class Ball(pygame.sprite.Sprite): ''' The Ball class creates the ball for our pong table. ''' def...
  20. menator01

    Python Simple Tkinter Calculator Part 2 - (Building the window display)

    In part 2 of our project, we will be building the window graphics for the calculator. We will: Create a container to hold all the widgets Create a entry field that will display the numbers, symbols, and results of calculations Create a list of numbers and symbols used Create an empty list to...
Back
Top Bottom