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

    Help with Setting Up Environment

    I see no problems with your setup. I don't understand setting up a partition just for creating web documents. I just create a project folder on the desktop. As for the php extension it's just habit. Unless I'm using django or flask, I prefer to use php.
  2. menator01

    Help with Setting Up Environment

    I think that would depend on what you want. As for me my structure is usually root folder - images - css - js - index.php Just a basic example This is on my pc for when I want to work on one of the sites. Folder setup and my-python folder
  3. menator01

    Help with Setting Up Environment

    Here is a post from Antero360 that may help with html https://codeforum.org/threads/reference-card-for-html.6691/#post-24614
  4. menator01

    Playing around with tkinter and background colors

    Changes background color every 3 seconds from dataclasses import dataclass, astuple import tkinter as tk from random import randint @dataclass class RGB: __slots__ = ['r','g','b'] r: int g: int b: int def __str__(self): return f'#%02x%02x%02x'.upper() %...
  5. menator01

    Tkinter Clock

    Haven't posted in a while so, here is a simple tkinter clock import tkinter as tk from time import strftime class Window: def __init__(self, parent): self.parent = parent self.label = tk.Label(parent, text='', bg='black', fg='red') self.label['highlightbackground']...
  6. menator01

    How do I implement a python widget into an html website?

    Have a look at django or flask
  7. menator01

    Python Python

    Is this a text file?
  8. menator01

    Python Check whether a whole number plus Numeric Numbe

    That's the easiest approach
  9. menator01

    Python Check whether a whole number plus Numeric Numbe

    The code could be written to remove the decimal if it is a 0. It's just a basic example. Nothing more.
  10. menator01

    Python Check whether a whole number plus Numeric Numbe

    Does it not also qualify as a float or decimal?
  11. menator01

    Python Check whether a whole number plus Numeric Numbe

    A basic example of the case use. Doesn't handle operations if in a string such as 6+2 def wholenumber(arg): match arg: case int(arg): return True case float(arg): return False case str(arg): if arg.isdigit() and type(int(arg)) ==...
  12. menator01

    Python Check whether a whole number plus Numeric Numbe

    I agree 5.0 is a whole number but, python sees a float. It cound be rounded or some other method to remove the decimal and be made a whole number. As for the string 6+4, could probably spit the string and covert to int and then add and return the sum.
  13. menator01

    Python Check whether a whole number plus Numeric Numbe

    Explain please. I'm always open to input.
  14. menator01

    Need help for applying simple font-style

    Glad I could help
  15. menator01

    Need help for applying simple font-style

    I changed this font-style: var(--heading-font); to font-family: var(--heading-font); and it changed the font font-style - CSS: Cascading Style Sheets | MDN
  16. menator01

    Python Check whether a whole number plus Numeric Numbe

    One way def check(arg): if isinstance(arg, str) and arg.isdigit(): print(f'{arg} is a whole number') elif isinstance(arg, int): print(f'{arg} is a whole number') else: print(f'{arg} is not a whole number') check(5) check(5.0) check(6+3) check('88')...
Back
Top Bottom