Questions tagged [sections]

697 questions
3
votes
1 answer

Proper way to document keys in TypedDict?

What is the proper way to document keys inside a TypedDict? I don't see much information inside PEP 589 – TypedDict. I can think of a few solutions: Document keys inside a docstring (is there a standard field to use here?): class Foo(TypedDict): …
Intrastellar Explorer
  • 3,005
  • 9
  • 52
  • 119
3
votes
1 answer

Invalid ID 0x00000001 errors after ViewPager2 migration

I have been working with a Tab layout with ViewPager for a while and it has gone deprecated. I followed the official documentation and migrated to ViewPager2, everything works but I am getting the following error on each fragment: Invalid ID…
Robin K.
  • 31
  • 1
  • 3
3
votes
3 answers

Left- or Center-Justifying Multiline Section Header for List in SwiftUI

Here is my code: struct ContentView: View { var body: some View { Form { Section(header: VStack { Text("Header line 1") Text("This is header line 2") }) { …
TJ Rogers
  • 500
  • 1
  • 6
  • 19
3
votes
3 answers

Split HTML string into sections based on specific tag on python

I'm fairly new to python. I spent days on the forum and the answers to my question exist but for javascript. I have an html page with the news and I want the content to be parsed into a new section anytime there is an H4 tag. I want to name the…
Lea7885
  • 97
  • 1
  • 9
3
votes
2 answers

License problem using sectioned ListView with J. Sharkey's SeparatedListAdapter

big explanation (better safe...), question in bold if you don't want to read it all. Thanks a lot for your help! I have an app with a ListView, and two custom XMLs. One is a single TextView, for the headers. The other has 3 TextViews and 3…
davidcesarino
  • 16,160
  • 16
  • 68
  • 109
3
votes
2 answers

Intersection Observer - highlight current section

I'm trying to activate and deactivate a class for navbar items whenever a section is either partially in view or partially out of view. The code works fine if I scroll down or up the page completely. The problem is if I change direction in the…
3
votes
1 answer

Drag & Drop entire section instead of single row in UITableView

I am using a UITableView to display a couple of sections which represent a to-do item, each with a couple of rows, which represent a smaller to-do item: - Finish thesis -- Interview representatives -- Rewrite chapter 8 -- Create cover sheet - Clean…
PennyWise
  • 595
  • 2
  • 12
  • 37
3
votes
1 answer

Sphinx RST expand subpages in html output

I'm using the sphinx documentation system to generate reports in both HTML and Latex output formats. So have a hierarchical structure where I have a read index.rst which contains a toctree that references all chapters in order of appearance. Then a…
user2882307
3
votes
1 answer

Error: "Unexpected nil index path in _canPerformAction:forCell:sender:, this should never happen."

I have a dynamic tableView with 2 prototype cells. I am using one of the cells for section header, the section header cell has it's own class. Data have been populated to these cells without problems. I am getting this error message "Error:…
Kevin W
  • 31
  • 4
3
votes
1 answer

How to reset numbered sections in Sphinx?

I have several documents that are independant from each others: index.rst foo.rst bar.rst conf.py Makefile I would like to access foo.rst from index.rst, but I would like the two subdocuments to start their numbering at 1. In index.rst I have: ..…
nowox
  • 25,978
  • 39
  • 143
  • 293
3
votes
3 answers

Process sections: does a declaration add also something to .text? If yes, what does it add?

I have a C code like this one, that will be possibly compiled in an ELF file for ARM: int a; int b=1; int foo(int x) { int c=2; static float d=1.5; // ....... } I know that all the executable code goes into the .text section, while…
es483
  • 361
  • 2
  • 16
3
votes
3 answers

If section has class active then add it's id to body as a class?

I would be grateful if you help with this thing, I can't resolve. I am trying to create a function: "if any section has class "active" => take this section's id then add it to body as a class element otherwise remove" This the code below, but it's…
3
votes
3 answers

How to deal with dynamic Sections and Rows in iOS UITableView

My issue When I deal with UITableView, I basically have an Array table_data with my sections and rows. [ { title : "section A title", rows: [ {data: row_1_data}, {data: row_2_data} ] }, { title :…
John Kakon
  • 2,531
  • 4
  • 24
  • 28
3
votes
6 answers

Removing white space between two sections

I have two sections as such:
...
...
There is a white space coming in between them. While this is not so for the rest of my sections. I have not set any display property for…
Amit Saxena
  • 216
  • 5
  • 15
3
votes
1 answer

What sections are required for a usable ELF executable?

I'm creating an ELF executable file and I need to know what sections are required by the operating system in order to load and execute it. Details: OS: Ubuntu 10.04 (64-bit) Kernel version: 2.6.32-24 Architecture: i386 I…
Nathan Osman
  • 71,149
  • 71
  • 256
  • 361