Welcome!

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

    Mariadb: Need help querying multiple WHERE LIKE conditions

    The docs on the mariadb like clause https://mariadb.com/kb/en/like/
  2. menator01

    Im having some issues with Json and PHP on HTML website

    Does your search.php have html in the code? The error appears to be coming from the response.
  3. menator01

    JavaScript JavaScript Presentation issue

    I'm not experienced in javascript but, I got this to work from examples on w3school. If this is something like your wanting <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title>...
  4. menator01

    JavaScript Disable clicking on answers in a quiz after making a choice

    What are you using, radio button or checkbox?
  5. menator01

    JavaScript JavaScript Presentation issue

    Can we see the whole code?
  6. menator01

    Im having some issues with Json and PHP on HTML website

    It's hard to give any advice without seeing any code. Look through your files for where the <br> tags are located and review them.
  7. menator01

    Python variable cant be defined for some reason

    You beat me to it. LOL!
  8. menator01

    Python variable cant be defined for some reason

    if guess == "H" or "h": This is wrong. Should be if guess == "H" or guess == "h": or you could do if guess in ['H','h']:
  9. menator01

    Python variable cant be defined for some reason

    I modified the your code a little to show another way. from random import choice # Create the categories categories = ['animals', 'plants', 'foods'] # Create words for the categories animals = ['horse', 'dog', 'cat', 'bird'] plants = ['tree', 'flower', 'weed', 'grass'] foods = ['hotdog'...
  10. menator01

    Python variable cant be defined for some reason

    As Johna suggested, it's comparing lowercase and uppercase that's probably causing the error.
  11. menator01

    How do I change text color in footer? Thought I had it right.

    color: white; or color: #ffffff;
  12. menator01

    Helpful tools and Resources

    I didn't see any resources for web servers so, here is a few that I have used in the past or experimented with. I added flask as it has it's own test server. Apache gunicorn nginx flask
  13. menator01

    Python issues when trying to pull from database using SQLite3

    Here is a example with flask and sqlite3. Hope it helps. app.py import sqlite3 from flask import Flask , render_template, url_for, request, redirect, session from database import Database app = Flask(__name__) app.secret_key = 'my secret key' @app.route('/') def index(): return...
  14. menator01

    Python issues when trying to pull from database using SQLite3

    Please post code instead of images. I would try and get the python part working first them implement the flask. A quick example import sqlite3 connect = sqlite3.connect('user.db') if connect: print(f'Connected to user.db') cursor = connect.cursor() def database(name, passwd): query =...
  15. menator01

    Random Quote

    Gets a random quote from internet. Tkinter and python import requests import json import tkinter as tk root = tk.Tk() root.title('Random quote of the day') def get_quote(): frame = tk.Frame(root) frame.grid(column=0, row=1, sticky='news', padx=1) url =...
  16. menator01

    Simple tkinter window using pygame sound mixer

    Simple tkinter window using images and pygame sound mixer. You will need to download or create a wav file and name it click.wav or edit accordingly. # Do the imports import tkinter as tk import pygame # Inialize pygame mixer pygame.mixer.init() root = tk.Tk() root.geometry('400x200+350+350')...
  17. menator01

    Color name and hex value from web

    Not posted in a while so, here is a quick tkinter app for getting a hex value for color. Enjoy. import tkinter as tk from tkinter import ttk from bs4 import BeautifulSoup import requests class Data: ''' Data queries the web for color hex and names from the web parses the page and...
  18. menator01

    Python I cannot slice Strings in a list

    You could do something like this alist = ['12345ham', '12345spam', '12345spammy'] alist = [item[5:] for item in alist] print(alist) I would recommend making a copy to do the changes.
  19. menator01

    Python 8 Pattern Horseracing

    Is there a question?
  20. menator01

    Python turtle problem

    I took your project a step further. The dog is a little big for the screen as it was what I was using to familiarize myself with turtle. I've not shrunk it down for the tkinter window. play.py import tkinter as tk import turtle import drawings class Window: def __init__(self, parent)...
Back
Top Bottom