D
D
DeMaNoSadea2019-07-14 21:04:53
Python
DeMaNoSadea, 2019-07-14 21:04:53

How to create a matrix to display on the screen?

I can’t understand how to make a class whose arguments are a matrix (list of lists) of cells and a cell, and whose methods are:
1. When initialized, the latitude and height of the screen are transferred to it and the title size is calculated, which are written to the arguments class (latitude and height)
2 Allows you to access the cell by column and row and enter the title in it
3. With the help of the generator, it allows you to access all the titles in turn, from the class matrix.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Guest007, 2019-07-15
@Guest007

A class is created using the `class` keyword.
Methods - `def`
How to: just write.
The question is too general - documentation, books and gradual steps will help you.
If you have specific questions - ask.
For example: "how do I get the current monitor screen resolution (linux, PyQt)". Or: "how to create a table widget (grids, matrices) on the whole screen (windows, TkInter)"
And in your wording it looks like a childish "solve me a coursework" ;-)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question