Jump to content

Heisenberg1927

Members
  • Posts

    9
  • Joined

  • Last visited

Posts posted by Heisenberg1927

  1. I am sorry but i already made changes in the script so that I can use it in tkinter..

    On 2/17/2019 at 2:37 PM, wtf said:

    As an alternative, may I suggest running a webserver, running your Python program as a CGI script, and using simple HTML forms for data input. Different approach to give a Python program a GUI.

    However I am caught up in another problem :-

    a=[12, 13, 14]

    b=[(12, 13), (13, 14)]

    I want to say remove the values stored in b[0] to be removed from 'a'. With this I am gonna complete my program so...this is the final step..

    cheers

    how can I do it?

    (I tried directly removing by a.remove(), but it didn't ..probably because it identifies (12, 13) as 1 element, but still ...help me out)

  2. Well i looked into it ...(thanks)...my program actually takes a range from user and then takes a number of data that is given by user in the form of range earlier. For this I have created a for loop which takes data as per range.

    My program then makes a list of that data ....so I created a loop of entry widgets as per range...so now how do I compile that data in a list so that my program can run further?..or is there any other way in which I can take data from the user and compile it into a list.

    I have attached the whole programs for ref

    1) main (graphic)- is the GUI I was trying to work out.

    2)main-is the actual working program

    It's fot custom use so u might not get point of it ....Cheers

    main(graphic).py

    main.py

  3. I have created a complex program(i can share if anyone wants for reference), which simply takes input and gives output in the console.The start of the program is:-

    a = int(input("Range - "))

    .......(The whole program is long..so not putting it here for now).....

    And i want to create an application using 'tkinter'..with an entry widget as the input (which is stored in variable 'a', after clicking a button).

    My program doesn't have any functions and I would like to just use that value of a which I get as input to be used as it is used in my actual program. .

    In short after i get input, my program should carry out the operations and then output the answer to the user in the app.

    Please help for getting input and showing output..

     

     

  4. I appreciate your reply...so for visualisation's sake can I imagine the universe to expand from every point in space/time..?

    Quote
    42 minutes ago, Strange said:

    There are various catalogs of stars and galaxies: https://en.wikipedia.org/wiki/Astronomical_catalog

    The observable universe is expanding. 

    Note that it doesn't really make sense to say that the universe is "expanding faster than light". Expansion is a scaling effect not a speed. The speed at which two points move apart is proportional to how far apart they are (this is Hubble's Law). So there are always objects that are far enough apart that they are moving apart at the speed of light or, if they are twice as far apart, twice the speed of light, or whatever. We can see objects that are moving away from us at more than the speed of light.

     

     

  5. When a new planet or a star is discovered how do the scientists keep a track on their identities as there are billions of them?........(Just a question out of curiosity).....Does the observable universe keep on expanding....and if we can see more than 13.772billion light years(estimate) would that practically verify that the universe is expanding faster than light or is there anything else which proves it?

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.